From 25a45cffb295e1f17c04f4edf2bb42265952dd46 Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 25 May 2009 04:27:35 +0000 Subject: [PATCH] Win32 - "Disable screen saver" gui option should now disable the monitor power save as well --- src/drivers/win/window.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/drivers/win/window.cpp b/src/drivers/win/window.cpp index 24a0c716..ac74be83 100644 --- a/src/drivers/win/window.cpp +++ b/src/drivers/win/window.cpp @@ -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)