Disable the "Disable screen saver" option

This commit is contained in:
Tillsunset
2023-03-29 02:23:52 +02:00
committed by Exzap
parent 02ec40b7ba
commit aa63a6a36e
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -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);
}
+3
View File
@@ -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)
{