Buildfix for Symbian.

This commit is contained in:
Sacha 2013-04-21 16:36:05 +10:00
parent 7af60ebd51
commit 6868cb5d32

View File

@ -56,13 +56,6 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
QApplication::setAttribute(Qt::AA_X11InitThreads, true);
#endif
QApplication a(argc, argv);
#ifdef __SYMBIAN32__
// Set RunFast hardware mode for VFPv2. Denormalised values are treated as 0. NaN used for all NaN situations.
User::SetFloatingPointMode(EFpModeRunFast);
// Disable screensaver
QSystemScreenSaver *ssObject = new QSystemScreenSaver(this);
ssObject->setScreenSaverInhibit();
#endif
QSize res = QApplication::desktop()->screenGeometry().size();
if (res.width() < res.height())
res.transpose();
@ -91,6 +84,13 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
w.resize(pixel_xres, pixel_yres);
w.showFullScreen();
#endif
#ifdef __SYMBIAN32__
// Set RunFast hardware mode for VFPv2.
User::SetFloatingPointMode(EFpModeRunFast);
// Disable screensaver
QSystemScreenSaver *ssObject = new QSystemScreenSaver(&w);
ssObject->setScreenSaverInhibit();
#endif
MainAudio *audio = new MainAudio();