From dec601a9dc9ce2c858247ca034a4abff28a7176a Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Thu, 9 Feb 2017 00:01:50 +0100 Subject: [PATCH] fontrenderer: add hack to work around broken fullBG code --- src/driver/fontrenderer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/driver/fontrenderer.cpp b/src/driver/fontrenderer.cpp index e974757d3..5d4ee16b7 100644 --- a/src/driver/fontrenderer.cpp +++ b/src/driver/fontrenderer.cpp @@ -425,7 +425,13 @@ void Font::RenderString(int x, int y, const int width, const char *text, const f return; const bool utf8_encoded = flags & IS_UTF8; +#if HAVE_TRIPLEDRAGON + /* the TD Framebufffer is ARGB; the others are BGRA. The fullbg code does not handle that + * the quick workaround is to just disable the fullbg flag */ + useFullBG = false; +#else useFullBG = flags & FULLBG; +#endif /* useFullBg = false fetch bgcolor from framebuffer, using lower left edge of the font