Win32 - "Disable screen saver" gui option should now disable the monitor power save as well

This commit is contained in:
adelikat 2009-05-25 04:27:35 +00:00
parent 5cd7ccea74
commit 25a45cffb2
1 changed files with 4 additions and 0 deletions

View File

@ -1588,6 +1588,10 @@ LRESULT FAR PASCAL AppWndProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam)
if(GameInfo && wParam == SC_SCREENSAVE && (goptions & GOO_DISABLESS))
return(0);
//adelikat: If we are going to disable screensave, we should disable monitor off as well
if(GameInfo && wParam == SC_MONITORPOWER && (goptions & GOO_DISABLESS))
return(0);
if(wParam==SC_KEYMENU)
{
if(GameInfo && ((InputType[2]==SIFC_FKB) || (InputType[2]==SIFC_SUBORKB)) && cidisabled)