Correct the dimensions of the font data buffer
This commit is contained in:
parent
899890a4fe
commit
f86acbf529
1 changed files with 2 additions and 2 deletions
|
|
@ -120,9 +120,9 @@ public:
|
||||||
void prepareResources()
|
void prepareResources()
|
||||||
{
|
{
|
||||||
const uint32_t fontWidth = STB_FONT_consolas_24_latin1_BITMAP_WIDTH;
|
const uint32_t fontWidth = STB_FONT_consolas_24_latin1_BITMAP_WIDTH;
|
||||||
const uint32_t fontHeight = STB_FONT_consolas_24_latin1_BITMAP_WIDTH;
|
const uint32_t fontHeight = STB_FONT_consolas_24_latin1_BITMAP_HEIGHT;
|
||||||
|
|
||||||
static unsigned char font24pixels[fontWidth][fontHeight];
|
static unsigned char font24pixels[fontHeight][fontWidth];
|
||||||
stb_font_consolas_24_latin1(stbFontData, font24pixels, fontHeight);
|
stb_font_consolas_24_latin1(stbFontData, font24pixels, fontHeight);
|
||||||
|
|
||||||
// Command buffer
|
// Command buffer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue