From 30bf930623a260771a2da6a699129d2f86584c86 Mon Sep 17 00:00:00 2001 From: Souryo Date: Sat, 17 Dec 2016 23:41:54 -0500 Subject: [PATCH] Linux: Fixed spritefont ARGB order bug --- Linux/SpriteFont.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Linux/SpriteFont.cpp b/Linux/SpriteFont.cpp index d533bbf4..2ac60edf 100644 --- a/Linux/SpriteFont.cpp +++ b/Linux/SpriteFont.cpp @@ -123,7 +123,7 @@ SpriteFont::Impl::Impl(SDL_Renderer* renderer, BinaryReader* reader) : textureData.insert(textureData.end(), pixelData, pixelData+textureStride*textureHeight); - SDL_Surface* surf = SDL_CreateRGBSurfaceFrom((void*)textureData.data(), textureWidth, textureHeight, 32, textureStride, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF); + SDL_Surface* surf = SDL_CreateRGBSurfaceFrom((void*)textureData.data(), textureWidth, textureHeight, 32, textureStride, 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000); texture = SDL_CreateTextureFromSurface(renderer, surf); SDL_FreeSurface(surf); }