pcsx2/common/include/Utilities
Avi Halachmi (:avih) 8a5c8ab91c fix: disable screen saver (pcsx2_ui.ini - DisableScreenSaver)
there was already code for this, but it was broken due to:
- the message is WM_SYSCOMMAND and wParam is SC_SCREENSAVE etc.
- GSPanel doesn't get WM_SYSCOMMAND - GSFrame does.
- also disabled screen saver while paused if not set to hide the GS window.
- it's an ugly hack where windows keeps trying to activate the screen saver
  every few seconds but such code prevents it (Lilypad has the same hack).

the new code uses windows API which was designed for this.

the screen saver is now disabled while the window is focused and the emulation
is running. it's on by defauly and without GUI - the same as with normal games.

this patch addresses Windows only, but adds a placeholder for future
implementations for other platforms.
2015-04-05 19:50:31 +03:00
..
AppTrait.h wx: properly overwrite trait creation 2014-11-22 18:51:05 +01:00
Assertions.h Use __builtin_unreachable where possible for non-msvc 2014-08-15 14:43:52 +10:00
CheckedStaticBox.h UI: 2010-06-24 20:30:36 +00:00
Console.h wx3.0: clang complains about support of reference in varargs 2014-08-03 14:43:08 +02:00
Dependencies.h i18n: use standard pcsx2_Iconize instead of an additional key lookup. In others word, english string is now included directly in the po/pot 2012-08-10 10:10:55 +00:00
EventSource.h Copyright 2010 : PCSX2 and plugins! (notable exception: didn't update copyright info in any Gabest plugins) 2010-05-03 14:08:02 +00:00
EventSource.inl Refactoring: 2010-08-09 04:10:38 +00:00
Exceptions.h pscx2: s/wxTrap/pxTrap/ 2014-12-13 12:28:37 +01:00
FixedPointTypes.h wxIsoFile: And a couple more compiler fixes. 2010-10-18 16:09:00 +00:00
FixedPointTypes.inl Fixed Issue 1311: UI percentage values sometimes save incorrectly to ini file. 2012-08-14 07:15:27 +00:00
General.h fix: disable screen saver (pcsx2_ui.ini - DisableScreenSaver) 2015-04-05 19:50:31 +03:00
HashMap.h common: drop remaining of HashMap 2014-07-29 21:06:31 +02:00
IniInterface.h Big gif transfer code rewrite! 2011-07-24 13:02:50 +00:00
MemcpyFast.h common: remove old memcpy implementation 2014-11-04 09:20:47 +01:00
MemsetFast.inl Remove some horrible old code. 2014-08-13 13:55:32 +10:00
PageFaultSource.h Removes the usage of __LINUX__ define 2014-08-03 13:20:36 -05:00
Path.h Portable mode: now allows fully custom folders, but still allows relocation of pcsx2 folder without breaking (install mode unmodified). 2011-03-29 17:41:11 +00:00
PersistentThread.h windows build take3: revert previous commit 2015-01-18 19:25:46 +01:00
RedtapeWindows.h Copyright 2010 : PCSX2 and plugins! (notable exception: didn't update copyright info in any Gabest plugins) 2010-05-03 14:08:02 +00:00
RwMutex.h Fixed inconsistent newlines / added as many svn:eol-style=native properties as I could without killing myself. 2011-03-25 05:06:49 +00:00
SafeArray.h pcsx2/common: fix tons of warning spamming on clang 2014-07-05 00:08:48 +02:00
SafeArray.inl SafeArray: add a null pointer check 2014-12-21 12:49:02 +01:00
ScopedAlloc.h Big gif transfer code rewrite! 2011-07-24 13:02:50 +00:00
ScopedPtr.h Major Settings Changes! 2011-01-10 17:48:25 +00:00
ScopedPtrMT.h * Documented some of the event/threading proxy class and its underlying event queue. 2010-12-27 15:25:39 +00:00
StringHelpers.h wx3.0: clang complains about support of reference in varargs 2014-08-03 14:43:08 +02:00
Threading.h spu2x:zzogl: disable TLS 2014-12-08 22:26:46 +01:00
ThreadingDialogs.h Fixed inconsistent newlines / added as many svn:eol-style=native properties as I could without killing myself. 2011-03-25 05:06:49 +00:00
TlsVariable.inl Introducing a mostly revamped Tracelog and Console log system. Various console log sources can now be toggled on/off on the fly, allowing end users to enable more verbose logging when they encounter problems. Both console and trace sources can be given automatic prefixing. 2010-08-06 05:46:09 +00:00
TraceLog.h wx3.0: clang complains about support of reference in varargs 2014-08-03 14:43:08 +02:00
lnx_memzero.h Remove redundant memzero_ptr. All compilers use SSE implementation anyway. 2014-08-17 23:23:55 +10:00
pxCheckBox.h pcsx2: remove template and pointer on overload function from wxGuiTools 2014-07-18 19:20:53 +02:00
pxEvents.h Fixed inconsistent newlines / added as many svn:eol-style=native properties as I could without killing myself. 2011-03-25 05:06:49 +00:00
pxForwardDefs.h Fixed inconsistent newlines / added as many svn:eol-style=native properties as I could without killing myself. 2011-03-25 05:06:49 +00:00
pxRadioPanel.h UI: Switched from the old 'native' text labels to a new custom draw text label that should (hopefully!) be a lot better about positioning and wrapping text, and fitting to windows and what-not. Also gets rid of my nasty "ideal width" hack I originally used to fix-size some of the dialogs. 2010-06-04 08:00:19 +00:00
pxStaticText.h pcsx2: remove template and pointer on overload function from wxGuiTools 2014-07-18 19:20:53 +02:00
pxStreams.h Fixed inconsistent newlines / added as many svn:eol-style=native properties as I could without killing myself. 2011-03-25 05:06:49 +00:00
win_memzero.h Remove redundant memzero_ptr. All compilers use SSE implementation anyway. 2014-08-17 23:23:55 +10:00
wxAppWithHelpers.h wx: properly overwrite trait creation 2014-11-22 18:51:05 +01:00
wxBaseTools.h Converted the GameDB to use wxWidgets classes. 2010-06-09 17:37:11 +00:00
wxGuiTools.h wx3.0: compilation fix for arch linux 2014-08-03 14:54:44 +02:00