diff options
Diffstat (limited to 'src/gui/windowmanager.cpp')
-rw-r--r-- | src/gui/windowmanager.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index ce0b0132d..e578a21c9 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -374,8 +374,11 @@ void WindowManager::setIcon() else SDL::getWindowWMInfo(nullptr, &pInfo); // Attempt to load icon from .ico file - HICON icon = (HICON) LoadImage(nullptr, iconFile.c_str(), - IMAGE_ICON, 64, 64, LR_LOADFROMFILE); + HICON icon = static_cast<HICON>(LoadImage(nullptr, + iconFile.c_str(), + IMAGE_ICON, + 64, 64, + LR_LOADFROMFILE)); // If it's failing, we load the default resource file. if (!icon) { |