mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Set correct icon resolution
Small icon handle is no longer equal to large if Icon::ApplicationIcon() is called
This commit is contained in:
parent
04bee896be
commit
b7057a1204
3
r5dev/thirdparty/cppnet/cppkore/Icon.cpp
vendored
3
r5dev/thirdparty/cppnet/cppkore/Icon.cpp
vendored
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user