From 90de080ebaaceb033a9a0f860779a4acd782ae0b Mon Sep 17 00:00:00 2001 From: scribam Date: Mon, 5 Apr 2021 11:01:38 +0200 Subject: [PATCH] windows: add missing icon in top-left corner of the windows when sdl is not used --- core/windows/winmain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/windows/winmain.cpp b/core/windows/winmain.cpp index d9b4886e2..98c091081 100644 --- a/core/windows/winmain.cpp +++ b/core/windows/winmain.cpp @@ -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 #include @@ -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);