From b7057a1204bbfef33bb83488abb816d26da039ce Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sat, 21 May 2022 22:41:15 +0200 Subject: [PATCH] Set correct icon resolution Small icon handle is no longer equal to large if Icon::ApplicationIcon() is called --- r5dev/thirdparty/cppnet/cppkore/Icon.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/r5dev/thirdparty/cppnet/cppkore/Icon.cpp b/r5dev/thirdparty/cppnet/cppkore/Icon.cpp index 81504872..195ab99c 100644 --- a/r5dev/thirdparty/cppnet/cppkore/Icon.cpp +++ b/r5dev/thirdparty/cppnet/cppkore/Icon.cpp @@ -62,8 +62,7 @@ namespace Drawing auto Result = std::make_unique(); auto Exe = System::Environment::GetApplication(); - Result->_IconHandleLg = ExtractIconA(GetModuleHandle(NULL), (const char*)Exe, 0); - Result->_IconHandleSm = Result->_IconHandleLg; + ExtractIconExA(Exe, 0, &Result->_IconHandleLg, &Result->_IconHandleSm, 1); return Result; }