From 258ce038a33dc5cf513079284242232be979d390 Mon Sep 17 00:00:00 2001 From: AllMeatball <181806857+AllMeatball@users.noreply.github.com> Date: Wed, 14 May 2025 11:34:08 -0500 Subject: [PATCH] isleapp: Remove _WIN32 ifdefs This is closer to the original code. I thought it would let Windows set the icon itself not set the icon upon window creation. --- ISLE/isleapp.cpp | 2 -- ISLE/res/resource.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index e16913bf..eac9da9c 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -486,7 +486,6 @@ MxResult IsleApp::SetupWindow() return FAILURE; } -#ifndef _WIN32 SDL_Surface* icon = SDL_CreateSurfaceFrom( ISLE_ICON.width, ISLE_ICON.height, @@ -499,7 +498,6 @@ MxResult IsleApp::SetupWindow() SDL_SetWindowIcon(m_windowHandle, icon); SDL_DestroySurface(icon); } -#endif if (!SetupLegoOmni()) { return FAILURE; diff --git a/ISLE/res/resource.h b/ISLE/res/resource.h index f36db072..56b9fd37 100644 --- a/ISLE/res/resource.h +++ b/ISLE/res/resource.h @@ -4,6 +4,4 @@ #define APP_ICON 105 -#ifndef _WIN32 #include "isle.h" -#endif