From 1f9254cd957266fea1f45d2e0978b1ed924a2e80 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 4 Feb 2018 13:10:09 +0100 Subject: [PATCH] fontrenderer: fix inverted logic for "rendering to buffer" Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/9c2a21c9c1fb2baf75560fa95a5fc15fccf0e05f Author: Stefan Seyfried Date: 2018-02-04 (Sun, 04 Feb 2018) --- src/driver/fontrenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/fontrenderer.cpp b/src/driver/fontrenderer.cpp index 21b967efc..cc04acff4 100644 --- a/src/driver/fontrenderer.cpp +++ b/src/driver/fontrenderer.cpp @@ -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... */