From 37d3e8ec1e25ba0b8bfa57a81feb84797602de52 Mon Sep 17 00:00:00 2001 From: Allanis Date: Mon, 10 Mar 2014 21:05:45 +0000 Subject: [PATCH] [Fix] This may very well solve some of the issues being reported with displaying text. --- src/toolkit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/toolkit.c b/src/toolkit.c index 74a5f2a..74e86a4 100644 --- a/src/toolkit.c +++ b/src/toolkit.c @@ -1132,13 +1132,13 @@ static void toolkit_renderText(Widget* txt, double bx, double by) { if(txt->dat.txt.centered) gl_printMid(txt->dat.txt.font, txt->w, - bx + (double)SCREEN_W/2. + txt->x, - by + (double)SCREEN_H/2. + txt->y, + round(bx + (double)SCREEN_W/2. + txt->x), + round(by + (double)SCREEN_H/2. + txt->y), txt->dat.txt.colour, txt->dat.txt.text); else gl_printText(txt->dat.txt.font, txt->w, txt->h, - bx + (double)SCREEN_W/2. + txt->x, - by + (double)SCREEN_H/2. + txt->y, + round(bx + (double)SCREEN_W/2. + txt->x), + round(by + (double)SCREEN_H/2. + txt->y), txt->dat.txt.colour, txt->dat.txt.text); }