From a2e02220dca86f81adb4a963c990ac64a61a57a5 Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Mon, 21 Oct 2013 18:48:51 +0200 Subject: [PATCH] Fix compatibility to WindowsXP: The GetErrorMode() API requires Vista or newer, so don't use it! --- etc/Translation/Blank.ts | 2 +- etc/Translation/LameXP_PL.ts | 2 +- etc/Translation/LameXP_SV.ts | 2 +- src/Config.h | 2 +- src/Dialog_SplashScreen.cpp | 6 ++---- src/Main.cpp | 4 ++-- 6 files changed, 8 insertions(+), 10 deletions(-) diff --git a/etc/Translation/Blank.ts b/etc/Translation/Blank.ts index d83c047a..6ea981e2 100644 --- a/etc/Translation/Blank.ts +++ b/etc/Translation/Blank.ts @@ -3290,7 +3290,7 @@ QApplication - + Executable '%1' doesn't support Windows compatibility mode. diff --git a/etc/Translation/LameXP_PL.ts b/etc/Translation/LameXP_PL.ts index f97764a4..78d5f207 100644 --- a/etc/Translation/LameXP_PL.ts +++ b/etc/Translation/LameXP_PL.ts @@ -3327,7 +3327,7 @@ QApplication - + Executable '%1' doesn't support Windows compatibility mode. Plik wykonywalny '%1' nie działa w trybie kompatybilności z Windows. diff --git a/etc/Translation/LameXP_SV.ts b/etc/Translation/LameXP_SV.ts index 6a212040..fea5b2bd 100644 --- a/etc/Translation/LameXP_SV.ts +++ b/etc/Translation/LameXP_SV.ts @@ -3310,7 +3310,7 @@ QApplication - + Executable '%1' doesn't support Windows compatibility mode. EXE-filen '%1' stöder inte Windows kompatibilitetsläge. diff --git a/src/Config.h b/src/Config.h index 020589d1..0a3568d2 100644 --- a/src/Config.h +++ b/src/Config.h @@ -34,7 +34,7 @@ #define VER_LAMEXP_MINOR_LO 9 #define VER_LAMEXP_TYPE Alpha #define VER_LAMEXP_PATCH 3 -#define VER_LAMEXP_BUILD 1414 +#define VER_LAMEXP_BUILD 1415 #define VER_LAMEXP_CONFG 1348 /////////////////////////////////////////////////////////////////////////////// diff --git a/src/Dialog_SplashScreen.cpp b/src/Dialog_SplashScreen.cpp index 16fdd1b3..dad7cfd3 100644 --- a/src/Dialog_SplashScreen.cpp +++ b/src/Dialog_SplashScreen.cpp @@ -135,8 +135,7 @@ void SplashScreen::showSplash(QThread *thread) for(int i = 1; i <= opacitySteps; i++) { const double opacity = (i < opacitySteps) ? (OPACITY_DELTA * static_cast(i)) : 1.0; - splashScreen->setWindowOpacity(opacity); - splashScreen->update(); + splashScreen->setWindowOpacity(opacity); //splashScreen->update(); ASYNC_WAIT(loop, FADE_DELAY); SET_TASKBAR_STATE(true); } @@ -161,8 +160,7 @@ void SplashScreen::showSplash(QThread *thread) for(int i = opacitySteps; i >= 0; i--) { const double opacity = OPACITY_DELTA * static_cast(i); - splashScreen->setWindowOpacity(opacity); - splashScreen->update(); + splashScreen->setWindowOpacity(opacity); //splashScreen->update(); ASYNC_WAIT(loop, FADE_DELAY); } diff --git a/src/Main.cpp b/src/Main.cpp index 34042c29..0d2143af 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -58,7 +58,7 @@ static int lamexp_main(int argc, char* argv[]) bool bAccepted = true; //Increase "main" thread priority - SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST); + SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL); //Get CLI arguments const QStringList &arguments = lamexp_arguments(); @@ -271,7 +271,7 @@ int main(int argc, char* argv[]) { __try { - SetErrorMode(GetErrorMode() | SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX); + SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX); SetUnhandledExceptionFilter(lamexp_exception_handler); _set_invalid_parameter_handler(lamexp_invalid_param_handler); return _main(argc, argv);