Use new icon in Windows builds
This commit is contained in:
parent
43f1f3a87c
commit
b3a3c5dfe5
3 changed files with 13 additions and 7 deletions
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
|
@ -470,12 +470,18 @@ static int watch_sdl_events(void *userdata, SDL_Event *e)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(MACOSX)
|
||||
|
||||
// On macOS, as we use a nicer external icon packaged in App bundle.
|
||||
/* On macOS, as we use a nicer external icon packaged in App bundle.
|
||||
*
|
||||
* Visual Studio bundles .ico file specified in winres.rc into the
|
||||
* dosbox.exe file.
|
||||
*
|
||||
* Other OSes will either use svg icon bundled in the native package, or
|
||||
* the window uploaded via SDL_SetWindowIcon below.
|
||||
*/
|
||||
#if defined(MACOSX) || defined(_MSC_VER)
|
||||
static void SetIcon() {}
|
||||
|
||||
#else
|
||||
|
||||
#include "icon.c"
|
||||
|
||||
static void SetIcon()
|
||||
|
@ -493,7 +499,8 @@ static void SetIcon()
|
|||
SDL_SetWindowIcon(sdl.window, s);
|
||||
SDL_FreeSurface(s);
|
||||
}
|
||||
#endif // !defined(MACOSX)
|
||||
|
||||
#endif
|
||||
|
||||
static void KillSwitch(bool pressed) {
|
||||
if (!pressed)
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
#include "winresrc.h"
|
||||
|
||||
// icon resource
|
||||
dosbox_ico ICON "dosbox.ico"
|
||||
|
||||
DOSBOX_ICO ICON "..\\contrib\\icons\\dosbox-staging.ico"
|
||||
|
||||
// version resource
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
|
|
Loading…
Add table
Reference in a new issue