windows: add missing icon in top-left corner of the windows when sdl is not used

This commit is contained in:
scribam 2021-04-05 11:01:38 +02:00
parent 87f6bf2d77
commit 90de080eba
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);