mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
(Windows) Fixed a window focusing issue when hiding the taskbar.
This commit is contained in:
parent
171679efa9
commit
9e86908a47
|
@ -459,18 +459,6 @@ int main(int argc, char* argv[])
|
||||||
outputToConsole(true);
|
outputToConsole(true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN64)
|
|
||||||
// Hide taskbar if the setting for this is enabled.
|
|
||||||
bool taskbarStateChanged = false;
|
|
||||||
unsigned int taskbarState;
|
|
||||||
|
|
||||||
if (Settings::getInstance()->getBool("HideTaskbar")) {
|
|
||||||
taskbarStateChanged = true;
|
|
||||||
taskbarState = getTaskbarState();
|
|
||||||
hideTaskbar();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(FREEIMAGE_LIB)
|
#if defined(FREEIMAGE_LIB)
|
||||||
// Call this ONLY when linking with FreeImage as a static library.
|
// Call this ONLY when linking with FreeImage as a static library.
|
||||||
FreeImage_Initialise();
|
FreeImage_Initialise();
|
||||||
|
@ -567,6 +555,18 @@ int main(int argc, char* argv[])
|
||||||
SDL_SetRelativeMouseMode(SDL_TRUE);
|
SDL_SetRelativeMouseMode(SDL_TRUE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_WIN64)
|
||||||
|
// Hide taskbar if the setting for this is enabled.
|
||||||
|
bool taskbarStateChanged = false;
|
||||||
|
unsigned int taskbarState;
|
||||||
|
|
||||||
|
if (Settings::getInstance()->getBool("HideTaskbar")) {
|
||||||
|
taskbarStateChanged = true;
|
||||||
|
taskbarState = getTaskbarState();
|
||||||
|
hideTaskbar();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (splashScreen) {
|
if (splashScreen) {
|
||||||
std::string progressText = "Loading...";
|
std::string progressText = "Loading...";
|
||||||
if (splashScreenProgress)
|
if (splashScreenProgress)
|
||||||
|
|
Loading…
Reference in a new issue