Skip to content

Commit

Permalink
Replace a few occurrences of hard-coded font height with FONT_H
Browse files Browse the repository at this point in the history
These two are all I managed to find, but there may be others.
  • Loading branch information
LBPHacker committed Jul 31, 2019
1 parent de1fc0f commit 8b81023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graphics/OpenGLDrawMethods.inl
Expand Up @@ -133,7 +133,7 @@ int PIXELMETHODS_CLASS::drawchar(int x, int y, String::value_type c, int r, int
{
unsigned char *rp = font_data + font_ptrs[c];
int w = *(rp++);
VideoBuffer texture(w, 12);
VideoBuffer texture(w, FONT_H);
texture.SetCharacter(0, 0, c, r, g, b, a);

glEnable(GL_TEXTURE_2D);
Expand Down Expand Up @@ -162,7 +162,7 @@ int PIXELMETHODS_CLASS::addchar(int x, int y, String::value_type c, int r, int g
{
unsigned char *rp = font_data + font_ptrs[c];
int w = *(rp++);
VideoBuffer texture(w, 12);
VideoBuffer texture(w, FONT_H);
texture.AddCharacter(0, 0, c, r, g, b, a);

glEnable(GL_TEXTURE_2D);
Expand Down

0 comments on commit 8b81023

Please sign in to comment.