mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
fix fontrenderer segfault (thx DBoxOldie)
This commit is contained in:
@@ -573,6 +573,9 @@ void Font::RenderString(int x, int y, const int width, const char *text, const f
|
|||||||
fg_blue = color & 0x000000FF;
|
fg_blue = color & 0x000000FF;
|
||||||
fb_pixel_t bg_color = 0;
|
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
|
/* 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
|
it's ready, otherwise the font will sometimes "be overwritten" with
|
||||||
background color or bgcolor will be wrong */
|
background color or bgcolor will be wrong */
|
||||||
|
Reference in New Issue
Block a user