dual head support (SDL_VIDEO_FULLSCREEN_HEAD) for Qt and SDL2

This commit is contained in:
beaumanvienna 2014-09-22 20:07:03 +02:00
parent 9bcffc5b4d
commit eb0ca946e9

View File

@ -15,6 +15,8 @@
#include "GPU/GPUInterface.h"
#include "UI/GamepadEmu.h"
int getDisplayNumber(void);
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
currentLanguage("en"),
@ -25,6 +27,11 @@ MainWindow::MainWindow(QWidget *parent) :
memoryTexWindow(0),
displaylistWindow(0)
{
QDesktopWidget *desktop = QApplication::desktop();
QRect rect = desktop->screenGeometry(getDisplayNumber());
move(rect.topLeft());
SetGameTitle("");
emugl = new MainUI(this);