mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-09 07:43:57 +01:00
Added minimize_on_focus_loss parameter to the general setings.conf.
Usage: minimize_on_focus_loss = true Usage: minimize_on_focus_loss = false
This commit is contained in:
parent
83e149a1f2
commit
7c6f07ebe0
@ -185,6 +185,19 @@ bool SDL::initialize(Configuration &config)
|
||||
Logger::write(Logger::ZONE_ERROR, "SDL", "Improve scale quality. Continuing with low-quality settings.");
|
||||
}
|
||||
|
||||
bool minimize_on_focus_loss_;
|
||||
if(config.getProperty("minimize_on_focus_loss", minimize_on_focus_loss_))
|
||||
{
|
||||
if(minimize_on_focus_loss_)
|
||||
{
|
||||
SDL_SetHintWithPriority(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "1", SDL_HINT_OVERRIDE);
|
||||
}
|
||||
else
|
||||
{
|
||||
SDL_SetHintWithPriority(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0", SDL_HINT_OVERRIDE);
|
||||
}
|
||||
}
|
||||
|
||||
if(retVal)
|
||||
{
|
||||
mutex_ = SDL_CreateMutex();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user