From 8484fc2c2d4cc097f35b5f9ff4068b21801addf9 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sat, 23 Feb 2019 23:36:53 +0000 Subject: [PATCH] Fix Font.cpp not expecting the font colour in BGR --- src/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Font.cpp b/src/Font.cpp index c3e81622..183acc6b 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -174,7 +174,7 @@ void DrawText(FontObject *font_object, SDL_Surface *surface, int x, int y, unsig { if (font_object != NULL) { - const unsigned char colours[3] = {(unsigned char)(colour >> 16), (unsigned char)(colour >> 8), (unsigned char)colour}; + const unsigned char colours[3] = {(unsigned char)colour, (unsigned char)(colour >> 8), (unsigned char)(colour >> 16)}; FT_Face face = font_object->face;