fontrenderer: fix inverted logic for "rendering to buffer"

This commit is contained in:
Stefan Seyfried
2018-02-04 13:10:09 +01:00
committed by Thilo Graf
parent 67758abcdb
commit d6487809d5

View File

@@ -575,7 +575,7 @@ void Font::RenderString(int x, int y, const int width, const char *text, const f
/* 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 */
if (buffer != NULL)
if (buffer == NULL)
frameBuffer->waitForIdle("Font::RenderString 1");
if (!useFullBG) {
/* fetch bgcolor from framebuffer, using lower left edge of the font... */