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