mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user