Skip to content

Commit

Permalink
high DPI respect system env
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrotter committed May 3, 2024
1 parent 48731fb commit 7e50de2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rssguard/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ int main(int argc, char* argv[]) {

// High DPI stuff.
#if QT_VERSION >= 0x050E00 // Qt >= 5.14.0
qputenv("QT_ENABLE_HIGHDPI_SCALING", "1");
auto high_dpi_existing_env = qgetenv("QT_ENABLE_HIGHDPI_SCALING");

if (high_dpi_existing_env.isEmpty()) {
qputenv("QT_ENABLE_HIGHDPI_SCALING", "1");
}
#else
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
#endif
Expand Down

0 comments on commit 7e50de2

Please sign in to comment.