mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-26 02:54:17 +01:00
Disable the "Disable screen saver" option
This commit is contained in:
parent
02ec40b7ba
commit
aa63a6a36e
@ -178,6 +178,10 @@ wxPanel* GeneralSettings2::AddGeneralPage(wxNotebook* notebook)
|
||||
m_disable_screensaver = new wxCheckBox(box, wxID_ANY, _("Disable screen saver"));
|
||||
m_disable_screensaver->SetToolTip(_("Prevents the system from activating the screen saver or going to sleep while running a game."));
|
||||
second_row->Add(m_disable_screensaver, 0, botflag, 5);
|
||||
#ifdef BOOST_OS_MACOS
|
||||
m_disable_screensaver->SetValue(false);
|
||||
m_disable_screensaver->Enable(false);
|
||||
#endif
|
||||
|
||||
box_sizer->Add(second_row, 0, wxEXPAND, 5);
|
||||
}
|
||||
|
@ -6,6 +6,9 @@ class ScreenSaver
|
||||
public:
|
||||
static void SetInhibit(bool inhibit)
|
||||
{
|
||||
#ifdef BOOST_OS_MACOS
|
||||
return;
|
||||
#endif
|
||||
// Initialize video subsystem if necessary
|
||||
if (SDL_WasInit(SDL_INIT_VIDEO) == 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user