mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Frame: Extract screensaver-related code into InhibitScreensaver/UninhibitScreensaver
This commit is contained in:
@ -24,7 +24,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
#import <IOKit/pwr_mgt/IOPMLib.h>
|
||||
#include <IOKit/pwr_mgt/IOPMLib.h>
|
||||
#endif
|
||||
|
||||
// Class declarations
|
||||
@ -164,10 +164,6 @@ private:
|
||||
ADD_PANE_CENTER
|
||||
};
|
||||
|
||||
#ifdef __APPLE__
|
||||
IOPMAssertionID m_power_assertion = kIOPMNullAssertionID;
|
||||
#endif
|
||||
|
||||
wxTimer m_poll_hotkey_timer;
|
||||
wxTimer m_handle_signal_timer;
|
||||
|
||||
@ -231,6 +227,13 @@ private:
|
||||
WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
||||
#endif
|
||||
|
||||
// Screensaver
|
||||
#ifdef __APPLE__
|
||||
IOPMAssertionID m_power_assertion = kIOPMNullAssertionID;
|
||||
#endif
|
||||
void InhibitScreensaver();
|
||||
void UninhibitScreensaver();
|
||||
|
||||
void DoOpen(bool Boot);
|
||||
void DoPause();
|
||||
void DoToggleToolbar(bool);
|
||||
|
Reference in New Issue
Block a user