fontrenderer: fix inverted logic for "rendering to buffer"

Origin commit data
------------------
Commit: 9c2a21c9c1
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2018-02-04 (Sun, 04 Feb 2018)
This commit is contained in:
Stefan Seyfried
2018-02-04 13:10:09 +01:00
committed by vanhofen
parent 5a2aaeb803
commit 1f9254cd95

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... */