Commit 50efe19c authored by Erwan Tulou's avatar Erwan Tulou

skins2(Win32): wParam to be stripped of 4 bits (see msdn doc)

parent d69bf360
...@@ -66,24 +66,24 @@ LRESULT CALLBACK Win32Factory::Win32Proc( HWND hwnd, UINT uMsg, ...@@ -66,24 +66,24 @@ LRESULT CALLBACK Win32Factory::Win32Proc( HWND hwnd, UINT uMsg,
if( uMsg == WM_SYSCOMMAND ) if( uMsg == WM_SYSCOMMAND )
{ {
// If closing parent window // If closing parent window
if( wParam == SC_CLOSE ) if( (wParam & 0xFFF0) == SC_CLOSE )
{ {
libvlc_Quit( p_intf->p_libvlc ); libvlc_Quit( p_intf->p_libvlc );
return 0; return 0;
} }
else if( wParam == SC_MINIMIZE ) else if( (wParam & 0xFFF0) == SC_MINIMIZE )
{ {
pFactory->minimize(); pFactory->minimize();
return 0; return 0;
} }
else if( wParam == SC_RESTORE ) else if( (wParam & 0xFFF0) == SC_RESTORE )
{ {
pFactory->restore(); pFactory->restore();
return 0; return 0;
} }
else else
{ {
msg_Dbg( p_intf, "WM_SYSCOMMAND %i", wParam ); msg_Dbg( p_intf, "WM_SYSCOMMAND %i", (wParam & 0xFFF0) );
} }
} }
// Handle systray notifications // Handle systray notifications
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment