From 398eaa565fec42084928bc73517b00a4847eb4aa Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Mon, 14 May 2018 19:54:08 -0500 Subject: [PATCH] [Qt] Enable High DPI scaling / pixmaps --- src/xenia/app/xenia_main.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xenia/app/xenia_main.cc b/src/xenia/app/xenia_main.cc index 861f10eef..7ca13b23b 100644 --- a/src/xenia/app/xenia_main.cc +++ b/src/xenia/app/xenia_main.cc @@ -30,6 +30,9 @@ int xenia_main(const std::vector& args) { Profiler::Initialize(); Profiler::ThreadEnter("main"); + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + int argc = 1; char* argv[] = {"xenia", nullptr}; QApplication app(argc, argv);