MSDN says that wParam should be masked ... maybe will fix a user reported problem of the screensaver starting
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3651 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
bad9880692
commit
20db80bf6d
|
@ -468,22 +468,22 @@ void CFrame::OnClose(wxCloseEvent& event)
|
||||||
// Input and host messages
|
// Input and host messages
|
||||||
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
WXLRESULT CFrame::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
WXLRESULT CFrame::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
||||||
|
{
|
||||||
|
switch (nMsg)
|
||||||
{
|
{
|
||||||
switch (nMsg)
|
case WM_SYSCOMMAND:
|
||||||
|
switch (wParam & 0xFFF0)
|
||||||
{
|
{
|
||||||
case WM_SYSCOMMAND:
|
case SC_SCREENSAVE:
|
||||||
switch (wParam)
|
case SC_MONITORPOWER:
|
||||||
{
|
return 0;
|
||||||
case SC_SCREENSAVE:
|
|
||||||
case SC_MONITORPOWER:
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
// Let wxWidgets process it as normal
|
|
||||||
return wxFrame::MSWWindowProc(nMsg, wParam, lParam);
|
|
||||||
}
|
}
|
||||||
|
default:
|
||||||
|
// Let wxWidgets process it as normal
|
||||||
|
return wxFrame::MSWWindowProc(nMsg, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void CFrame::OnHostMessage(wxCommandEvent& event)
|
void CFrame::OnHostMessage(wxCommandEvent& event)
|
||||||
|
@ -738,4 +738,3 @@ void CFrame::Update()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue