From bd730cbeec2acb7b97ead8251066eda71dc8ee7b Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 28 Aug 2023 05:44:38 -0500 Subject: [PATCH] GUI: furIcon big endian fix --- src/gui/gui.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 07be9fef..db3d4311 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -6361,7 +6361,11 @@ bool FurnaceGUI::init() { const FurnaceGUIImage* furIcon=getImage(GUI_IMAGE_ICON); SDL_Surface* icon=NULL; if (furIcon!=NULL) { +#ifdef TA_BIG_ENDIAN + icon=SDL_CreateRGBSurfaceFrom(furIcon->data,furIcon->width,furIcon->height,32,256*4,0xff000000,0xff0000,0xff00,0xff); +#else icon=SDL_CreateRGBSurfaceFrom(furIcon->data,furIcon->width,furIcon->height,32,256*4,0xff,0xff00,0xff0000,0xff000000); +#endif } else { logE("furIcon is NULL!"); }