Updated UPX version on "About" screen.

This commit is contained in:
LoRd_MuldeR 2013-04-11 00:01:33 +02:00
parent db75b36e72
commit 093d4eadbe
3 changed files with 4 additions and 2 deletions

View File

@ -781,7 +781,7 @@ void AboutDialog::initSoftwareTab(void)
moreAboutText += makeToolText moreAboutText += makeToolText
( (
tr("UPX - The Ultimate Packer for eXecutables"), tr("UPX - The Ultimate Packer for eXecutables"),
QString(), "v3.08", QString(), "v3.09",
tr("Released under the terms of the GNU Lesser General Public License."), tr("Released under the terms of the GNU Lesser General Public License."),
"http://upx.sourceforge.net/" "http://upx.sourceforge.net/"
); );

View File

@ -132,6 +132,7 @@ void SplashScreen::showSplash(QThread *thread)
{ {
opacity = (i < opacitySteps) ? (OPACITY_DELTA * static_cast<double>(i)) : 1.0; opacity = (i < opacitySteps) ? (OPACITY_DELTA * static_cast<double>(i)) : 1.0;
splashScreen->setWindowOpacity(opacity); splashScreen->setWindowOpacity(opacity);
splashScreen->update();
QApplication::processEvents(QEventLoop::ExcludeUserInputEvents, FADE_DELAY); QApplication::processEvents(QEventLoop::ExcludeUserInputEvents, FADE_DELAY);
SET_TASKBAR_STATE(true); SET_TASKBAR_STATE(true);
Sleep(FADE_DELAY); Sleep(FADE_DELAY);
@ -161,6 +162,7 @@ void SplashScreen::showSplash(QThread *thread)
{ {
opacity = OPACITY_DELTA * static_cast<double>(i); opacity = OPACITY_DELTA * static_cast<double>(i);
splashScreen->setWindowOpacity(opacity); splashScreen->setWindowOpacity(opacity);
splashScreen->update();
QApplication::processEvents(QEventLoop::ExcludeUserInputEvents, FADE_DELAY); QApplication::processEvents(QEventLoop::ExcludeUserInputEvents, FADE_DELAY);
Sleep(FADE_DELAY); Sleep(FADE_DELAY);
} }

View File

@ -661,7 +661,7 @@ void lamexp_init_console(const QStringList &argv)
//------------------------------------------------------------------- //-------------------------------------------------------------------
const int flags = _O_WRONLY | _O_U8TEXT; const int flags = _O_WRONLY | _O_U8TEXT;
int hCrtStdOut = _open_osfhandle((intptr_t) GetStdHandle(STD_OUTPUT_HANDLE), flags); int hCrtStdOut = _open_osfhandle((intptr_t) GetStdHandle(STD_OUTPUT_HANDLE), flags);
int hCrtStdErr = _open_osfhandle((intptr_t) GetStdHandle(STD_ERROR_HANDLE), flags); int hCrtStdErr = _open_osfhandle((intptr_t) GetStdHandle(STD_ERROR_HANDLE), flags);
FILE *hfStdOut = (hCrtStdOut >= 0) ? _fdopen(hCrtStdOut, "wb") : NULL; FILE *hfStdOut = (hCrtStdOut >= 0) ? _fdopen(hCrtStdOut, "wb") : NULL;
FILE *hfStdErr = (hCrtStdErr >= 0) ? _fdopen(hCrtStdErr, "wb") : NULL; FILE *hfStdErr = (hCrtStdErr >= 0) ? _fdopen(hCrtStdErr, "wb") : NULL;
if(hfStdOut) { *stdout = *hfStdOut; std::cout.rdbuf(new std::filebuf(hfStdOut)); } if(hfStdOut) { *stdout = *hfStdOut; std::cout.rdbuf(new std::filebuf(hfStdOut)); }