From 8b810237709914f11191b0d98055c18ae665525e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Wed, 31 Jul 2019 23:57:13 +0200 Subject: [PATCH] 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. --- src/graphics/OpenGLDrawMethods.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/OpenGLDrawMethods.inl b/src/graphics/OpenGLDrawMethods.inl index 1d01c7e0e..74039f33f 100644 --- a/src/graphics/OpenGLDrawMethods.inl +++ b/src/graphics/OpenGLDrawMethods.inl @@ -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);