fix fontrenderer segfault (thx DBoxOldie)

Origin commit data
------------------
Commit: e895e25d17
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2018-03-29 (Thu, 29 Mar 2018)
This commit is contained in:
BPanther
2018-03-29 01:03:55 +02:00
committed by vanhofen
parent 6e63adf7dc
commit c971918205

View File

@@ -573,6 +573,9 @@ void Font::RenderString(int x, int y, const int width, const char *text, const f
fg_blue = color & 0x000000FF;
fb_pixel_t bg_color = 0;
if (y < 0)
y = 0;
/* the GXA seems to do it's job asynchonously, so we need to wait until
it's ready, otherwise the font will sometimes "be overwritten" with
background color or bgcolor will be wrong */