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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user