[Fix] This may very well solve some of the issues being reported with
displaying text.
This commit is contained in:
parent
4003fd7c5f
commit
37d3e8ec1e
@ -1132,13 +1132,13 @@ static void toolkit_renderText(Widget* txt, double bx, double by) {
|
|||||||
|
|
||||||
if(txt->dat.txt.centered)
|
if(txt->dat.txt.centered)
|
||||||
gl_printMid(txt->dat.txt.font, txt->w,
|
gl_printMid(txt->dat.txt.font, txt->w,
|
||||||
bx + (double)SCREEN_W/2. + txt->x,
|
round(bx + (double)SCREEN_W/2. + txt->x),
|
||||||
by + (double)SCREEN_H/2. + txt->y,
|
round(by + (double)SCREEN_H/2. + txt->y),
|
||||||
txt->dat.txt.colour, txt->dat.txt.text);
|
txt->dat.txt.colour, txt->dat.txt.text);
|
||||||
else
|
else
|
||||||
gl_printText(txt->dat.txt.font, txt->w, txt->h,
|
gl_printText(txt->dat.txt.font, txt->w, txt->h,
|
||||||
bx + (double)SCREEN_W/2. + txt->x,
|
round(bx + (double)SCREEN_W/2. + txt->x),
|
||||||
by + (double)SCREEN_H/2. + txt->y,
|
round(by + (double)SCREEN_H/2. + txt->y),
|
||||||
txt->dat.txt.colour, txt->dat.txt.text);
|
txt->dat.txt.colour, txt->dat.txt.text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user