From d3a2bde2bb2681f819e1392435612be595f123f8 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Fri, 13 May 2005 19:41:11 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=6154 --- api/windows_opengl.C | 12 ++++++++++-- checkin_notes | 8 ++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/api/windows_opengl.C b/api/windows_opengl.C index 68d80e4778..59fc4694ea 100755 --- a/api/windows_opengl.C +++ b/api/windows_opengl.C @@ -313,9 +313,17 @@ LRESULT CALLBACK WndProc( if (boinc_is_standalone()) { exit(0); } else { - set_mode(MODE_HIDE_GRAPHICS); - return 0; + if (current_graphics_mode != MODE_FULLSCREEN) { + set_mode(MODE_HIDE_GRAPHICS); + } } + return 0; + case WM_POWERBROADCAST: + if (PBT_APMQUERYSUSPEND == wParam && current_graphics_mode == MODE_FULLSCREEN) { + set_mode(MODE_HIDE_GRAPHICS); + return TRUE; + } + break; case WM_PAINT: PAINTSTRUCT ps; RECT winRect; diff --git a/checkin_notes b/checkin_notes index 53db781735..7c8a15f301 100755 --- a/checkin_notes +++ b/checkin_notes @@ -6575,3 +6575,11 @@ Janus 13 May 2005 white.css bbcode.php (new) +Rom 13 May 2005 + - When an application is in screensaver mode, do not respond to the WM_CLOSE event + since Intellitype/Intellipoint will try to shutdown the screensavers. + - When in screensaver mode respond to a power broadcast event by shutting ourselves + down so the OS can go to sleep. + + api/ + windows_opengl.C