This commit is contained in:
tildearrow 2023-02-15 18:59:49 -05:00
parent 0585d127a6
commit 61e579a10a
4 changed files with 40 additions and 3 deletions

View file

@ -5446,7 +5446,11 @@ bool FurnaceGUI::init() {
// get the icon (on macOS and Windows the icon is bundled with the app)
const FurnaceGUIImage* furIcon=getImage(GUI_IMAGE_ICON);
SDL_Surface* icon=NULL;
if (furIcon!=NULL) SDL_CreateRGBSurfaceFrom(furIcon->data,furIcon->width,furIcon->height,32,256*4,0xff,0xff00,0xff0000,0xff000000);
if (furIcon!=NULL) {
SDL_CreateRGBSurfaceFrom(furIcon->data,furIcon->width,furIcon->height,32,256*4,0xff,0xff00,0xff0000,0xff000000);
} else {
logE("furIcon is NULL!");
}
#endif
#ifdef IS_MOBILE