From 6889b5827059dd8128719cb5f1e7680bf9effd16 Mon Sep 17 00:00:00 2001 From: Nathan S Date: Sun, 5 Jun 2016 14:56:23 +0200 Subject: [PATCH] (gl_raster_font) Fixed scaling for newlines --- gfx/drivers_font/gl_raster_font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/drivers_font/gl_raster_font.c b/gfx/drivers_font/gl_raster_font.c index b400192697..1016c80443 100644 --- a/gfx/drivers_font/gl_raster_font.c +++ b/gfx/drivers_font/gl_raster_font.c @@ -360,8 +360,8 @@ static void gl_raster_font_render_message( return; } - line_height = scale * 1/ (float) - font->font_driver->get_line_height(font->font_data); + line_height = 1 / + (scale * (float) font->font_driver->get_line_height(font->font_data)); for (;;) {