1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Launcher: use QDesktopWidget to get display list instead of SDL2

First of all SDL2 trying to use dbus and this conflict with Qt. Check mantis#2704.
And there no reason to use SDL2 in launcher when Qt can do the same thing as well.
This commit is contained in:
Arseniy Shestakov
2017-08-24 04:52:02 +03:00
parent c6ff28936d
commit 1110dd27d1
8 changed files with 28 additions and 78 deletions

View File

@@ -10,13 +10,11 @@
#include <QApplication>
#include "StdInc.h"
#include "mainwindow_moc.h"
#include "sdldisplayquery.h"
int main(int argc, char * argv[])
{
QApplication vcmilauncher(argc, argv);
auto displayList = getDisplays();
MainWindow mainWindow(displayList);
MainWindow mainWindow;
mainWindow.show();
return vcmilauncher.exec();
}