Set correct icon resolution

Small icon handle is no longer equal to large if Icon::ApplicationIcon() is called
This commit is contained in:
Kawe Mazidjatari 2022-05-21 22:41:15 +02:00
parent 04bee896be
commit b7057a1204

View File

@ -62,8 +62,7 @@ namespace Drawing
auto Result = std::make_unique<Icon>();
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;
}