mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-21 10:19:04 +02:00
commit
f5e7bd5a9c
1 file changed
+2
-17
+2
-17
@@ -13,9 +13,6 @@
|
||||
#ifdef __SYMBIAN32__
|
||||
#include <AknAppUi.h>
|
||||
#endif
|
||||
#if defined(Q_WS_X11) && !defined(USING_GLES2)
|
||||
#include "mainwindow.h"
|
||||
#endif
|
||||
#include "QtMain.h"
|
||||
|
||||
void LaunchBrowser(const char *url)
|
||||
@@ -60,16 +57,11 @@ int main(int argc, char *argv[])
|
||||
QT_TRAP_THROWING(dynamic_cast<CAknAppUi*>(CEikonEnv::Static()->AppUi())->SetOrientationL(CAknAppUi::EAppUiOrientationLandscape));
|
||||
#endif
|
||||
QSize res = QApplication::desktop()->screenGeometry().size();
|
||||
#ifdef USING_GLES2
|
||||
if (res.width() < res.height())
|
||||
res.transpose();
|
||||
pixel_xres = res.width();
|
||||
pixel_yres = res.height();
|
||||
#else
|
||||
// Set resolution to half of the monitor on desktop systems
|
||||
pixel_xres = res.width() / 2;
|
||||
pixel_yres = res.height() / 2;
|
||||
#endif
|
||||
|
||||
float dpi_scale = CalculateDPIScale();
|
||||
dp_xres = (int)(pixel_xres * dpi_scale); dp_yres = (int)(pixel_yres * dpi_scale);
|
||||
net::Init();
|
||||
@@ -81,17 +73,10 @@ int main(int argc, char *argv[])
|
||||
NativeInit(argc, (const char **)argv, "./", "/tmp", "BADCOFFEE");
|
||||
#endif
|
||||
|
||||
#if defined(Q_WS_X11) && !defined(USING_GLES2)
|
||||
MainWindow mainWindow;
|
||||
mainWindow.show();
|
||||
#else
|
||||
#if defined(USING_GLES2)
|
||||
MainUI w(dpi_scale);
|
||||
w.resize(pixel_xres, pixel_yres);
|
||||
#ifdef USING_GLES2
|
||||
w.showFullScreen();
|
||||
#else
|
||||
w.show();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
MainAudio *audio = new MainAudio();
|
||||
|
||||
Reference in new issue
Block a user