GUI: furIcon big endian fix

This commit is contained in:
tildearrow 2023-08-28 05:44:38 -05:00
parent 347b3cf2b1
commit bd730cbeec
1 changed files with 4 additions and 0 deletions

View File

@ -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!");
}