[App/Qt] Enable proper high-dpi scaling
This change requires Qt 5.14+ when building
This commit is contained in:
parent
72ae10dc2b
commit
3d8de4b750
|
@ -55,7 +55,6 @@ int xenia_main(const std::vector<std::string>& args) {
|
|||
|
||||
// auto emulator = std::make_unique<xe::Emulator>(L"");
|
||||
|
||||
|
||||
// Start Qt
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
|
@ -63,8 +62,8 @@ int xenia_main(const std::vector<std::string>& args) {
|
|||
QCoreApplication::setOrganizationName(
|
||||
"Xenia Xbox 360 Emulator Research Project");
|
||||
QCoreApplication::setOrganizationDomain("https://xenia.jp");
|
||||
//QGuiApplication::setHighDpiScaleFactorRoundingPolicy(
|
||||
//Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(
|
||||
Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||
|
||||
std::filesystem::path storage_root = cvars::storage_root;
|
||||
if (storage_root.empty()) {
|
||||
|
|
Loading…
Reference in New Issue