mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 21:15:11 +00:00
GUI: furIcon big endian fix
This commit is contained in:
parent
347b3cf2b1
commit
bd730cbeec
1 changed files with 4 additions and 0 deletions
|
@ -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!");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue