Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Enable high-DPI scaling.
Browse files Browse the repository at this point in the history
  • Loading branch information
ttddee committed Mar 15, 2022
1 parent 08ccaa7 commit 69ad806
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE;

int main(int argc, char *argv[])
{
// Enable scaling for high DPI screens
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

QApplication a(argc, argv);

QString title = QString("Cascade Image Editor - v%1.%2.%3").arg(VERSION_MAJOR).arg(VERSION_MINOR).arg(VERSION_BUILD);
Expand Down

0 comments on commit 69ad806

Please sign in to comment.