|
@@ -8,12 +8,15 @@
|
|
|
|
|
|
#include <Source/LuaIDEApplication.h>
|
|
|
|
|
|
+#include <AzQtComponents/Utilities/HandleDpiAwareness.h>
|
|
|
+
|
|
|
#include <QtCore/QCoreApplication>
|
|
|
|
|
|
#if defined(EXTERNAL_CRASH_REPORTING)
|
|
|
#include <ToolsCrashHandler.h>
|
|
|
#endif
|
|
|
|
|
|
+#include <QApplication>
|
|
|
#include <QDir>
|
|
|
#include <QFileInfo>
|
|
|
|
|
@@ -38,6 +41,12 @@ int main(int argc, char* argv[])
|
|
|
AZStd::unique_ptr<AZ::IO::LocalFileIO> fileIO = AZStd::unique_ptr<AZ::IO::LocalFileIO>(aznew AZ::IO::LocalFileIO());
|
|
|
AZ::IO::FileIOBase::SetInstance(fileIO.get());
|
|
|
|
|
|
+ QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
|
+ QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
|
|
+ QCoreApplication::setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
|
|
|
+ QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
|
|
+ AzQtComponents::Utilities::HandleDpiAwareness(AzQtComponents::Utilities::PerScreenDpiAware);
|
|
|
+
|
|
|
LUAEditor::Application app(argc, argv);
|
|
|
|
|
|
QString procName;
|