summaryrefslogtreecommitdiff
path: root/src/gui/windowmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-10 02:29:25 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-10 02:29:25 +0300
commit0eaeb9e50cb6114b0808ee140326ab015c533cee (patch)
treea8a448b59460fccec64b3ef17ed0182f1b337d64 /src/gui/windowmanager.cpp
parent50c489bc7a36972186cdb843c0582195f37e4549 (diff)
downloadplus-0eaeb9e50cb6114b0808ee140326ab015c533cee.tar.gz
plus-0eaeb9e50cb6114b0808ee140326ab015c533cee.tar.bz2
plus-0eaeb9e50cb6114b0808ee140326ab015c533cee.tar.xz
plus-0eaeb9e50cb6114b0808ee140326ab015c533cee.zip
Fix compilation warnings with mingw.
Diffstat (limited to 'src/gui/windowmanager.cpp')
-rw-r--r--src/gui/windowmanager.cpp7
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)
{