Merge pull request #216 from scribam/windows-icon

windows: add missing icon in top-left corner of the windows when sdl is not used
This commit is contained in:
flyinghead 2021-04-05 17:06:07 +02:00 committed by GitHub
commit 2fa3cfea8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@
#include "rend/mainui.h"
#include "hw/sh4/dyna/ngen.h"
#include "oslib/host_context.h"
#include "../shell/windows/resource.h"
#include <windows.h>
#include <windowsx.h>
@ -392,7 +393,7 @@ void CreateMainWindow()
sWC.cbClsExtra = 0;
sWC.cbWndExtra = 0;
sWC.hInstance = hInstance;
sWC.hIcon = 0;
sWC.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));
sWC.hCursor = LoadCursor(NULL, IDC_ARROW);
sWC.lpszMenuName = 0;
sWC.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH);