[vlc-commits] skins2(Win32): wParam to be stripped of 4 bits (see msdn doc)
Erwan Tulou
git at videolan.org
Fri Jan 28 19:29:33 CET 2011
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Fri Jan 28 16:31:12 2011 +0100| [50efe19c1825f6c8a94097e8d339eb1939e8fda6] | committer: Erwan Tulou
skins2(Win32): wParam to be stripped of 4 bits (see msdn doc)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=50efe19c1825f6c8a94097e8d339eb1939e8fda6
---
modules/gui/skins2/win32/win32_factory.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/gui/skins2/win32/win32_factory.cpp b/modules/gui/skins2/win32/win32_factory.cpp
index 338cb49..d4d8ce7 100644
--- a/modules/gui/skins2/win32/win32_factory.cpp
+++ b/modules/gui/skins2/win32/win32_factory.cpp
@@ -66,24 +66,24 @@ LRESULT CALLBACK Win32Factory::Win32Proc( HWND hwnd, UINT uMsg,
if( uMsg == WM_SYSCOMMAND )
{
// If closing parent window
- if( wParam == SC_CLOSE )
+ if( (wParam & 0xFFF0) == SC_CLOSE )
{
libvlc_Quit( p_intf->p_libvlc );
return 0;
}
- else if( wParam == SC_MINIMIZE )
+ else if( (wParam & 0xFFF0) == SC_MINIMIZE )
{
pFactory->minimize();
return 0;
}
- else if( wParam == SC_RESTORE )
+ else if( (wParam & 0xFFF0) == SC_RESTORE )
{
pFactory->restore();
return 0;
}
else
{
- msg_Dbg( p_intf, "WM_SYSCOMMAND %i", wParam );
+ msg_Dbg( p_intf, "WM_SYSCOMMAND %i", (wParam & 0xFFF0) );
}
}
// Handle systray notifications
More information about the vlc-commits
mailing list