mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-15 12:38:59 +00:00
Have the ability to disable screensaver due to Nvidia + Displayport can cause annoying flickering
Bring up to standards guidelines and also support Windows Switch this around...
This commit is contained in:
parent
7737b2cef1
commit
62e790f109
7 changed files with 13 additions and 6 deletions
|
@ -950,6 +950,7 @@ void CFrame::StartGame(const std::string& filename)
|
|||
else
|
||||
{
|
||||
#if defined(HAVE_X11) && HAVE_X11
|
||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bDisableScreenSaver)
|
||||
X11Utils::InhibitScreensaver(X11Utils::XDisplayFromHandle(GetHandle()),
|
||||
X11Utils::XWindowFromHandle(GetHandle()), true);
|
||||
#endif
|
||||
|
@ -1070,6 +1071,7 @@ void CFrame::DoStop()
|
|||
wxEndBusyCursor();
|
||||
|
||||
#if defined(HAVE_X11) && HAVE_X11
|
||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bDisableScreenSaver)
|
||||
X11Utils::InhibitScreensaver(X11Utils::XDisplayFromHandle(GetHandle()),
|
||||
X11Utils::XWindowFromHandle(GetHandle()), false);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue