mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-08-30 14:00:36 +00:00
Fix linking on Windows
This commit is contained in:
+6
-5
@@ -1,15 +1,16 @@
|
|||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
#include <QQmlApplicationEngine>
|
#include <QQmlApplicationEngine>
|
||||||
|
|
||||||
|
// Don't let SDL hook our main function, since Qt is already
|
||||||
|
// doing the same thing. This needs to be before any headers
|
||||||
|
// that might include SDL.h themselves.
|
||||||
|
#define SDL_MAIN_HANDLED
|
||||||
|
#include <SDL.h>
|
||||||
|
|
||||||
#include "gui/computermodel.h"
|
#include "gui/computermodel.h"
|
||||||
#include "gui/appmodel.h"
|
#include "gui/appmodel.h"
|
||||||
#include "streaming/session.hpp"
|
#include "streaming/session.hpp"
|
||||||
|
|
||||||
// Don't let SDL hook our main function, since Qt is already
|
|
||||||
// doing the same thing
|
|
||||||
#define SDL_MAIN_HANDLED
|
|
||||||
#include <SDL.h>
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
|||||||
Reference in New Issue
Block a user