From 1eb0048e5451f972d8cda93233333c456f964b06 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sat, 21 Jan 2017 05:51:34 -0600 Subject: [PATCH] When creating a window icon from the game's icon resource, scale it to default Windows size (fixes an issue where the icon would appear larger than it should in the Volume Mixer). --- src/xenia/ui/window_win.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xenia/ui/window_win.cc b/src/xenia/ui/window_win.cc index b5deac2a3..0d01edd20 100644 --- a/src/xenia/ui/window_win.cc +++ b/src/xenia/ui/window_win.cc @@ -190,7 +190,8 @@ bool Win32Window::SetIcon(const void* buffer, size_t size) { // Create icon and set on window (if it's valid). icon_ = CreateIconFromResourceEx( reinterpret_cast(const_cast(buffer)), - static_cast(size), TRUE, 0x00030000, 0, 0, LR_DEFAULTCOLOR); + static_cast(size), TRUE, 0x00030000, 0, 0, + LR_DEFAULTCOLOR | LR_DEFAULTSIZE); if (icon_) { SendMessage(hwnd_, WM_SETICON, ICON_BIG, reinterpret_cast(icon_)); SendMessage(hwnd_, WM_SETICON, ICON_SMALL, reinterpret_cast(icon_));