diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-10 02:29:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-10 02:29:25 +0300 |
commit | 0eaeb9e50cb6114b0808ee140326ab015c533cee (patch) | |
tree | a8a448b59460fccec64b3ef17ed0182f1b337d64 /src/gui | |
parent | 50c489bc7a36972186cdb843c0582195f37e4549 (diff) | |
download | manaverse-0eaeb9e50cb6114b0808ee140326ab015c533cee.tar.gz manaverse-0eaeb9e50cb6114b0808ee140326ab015c533cee.tar.bz2 manaverse-0eaeb9e50cb6114b0808ee140326ab015c533cee.tar.xz manaverse-0eaeb9e50cb6114b0808ee140326ab015c533cee.zip |
Fix compilation warnings with mingw.
Diffstat (limited to 'src/gui')
-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) { |