Replace a few occurrences of hard-coded font height with FONT_H

These two are all I managed to find, but there may be others.
This commit is contained in:
Tamás Bálint Misius 2019-07-31 23:57:13 +02:00
parent de1fc0f906
commit 8b81023770
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -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);
@ -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);