Skip to content

Commit

Permalink
2041: enable hi dpi scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
kduske committed Oct 10, 2019
1 parent 4d1359e commit 1ce7243
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ int main(int argc, char *argv[])
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
QSettings::setDefaultFormat(QSettings::IniFormat);

// Set up Hi DPI scaling
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

// We can't use auto mnemonics in TrenchBroom. e.g. by default with Qt, Alt+D opens the "Debug" menu,
// Alt+S activates the "Show default properties" checkbox in the entity inspector.
// Flying with Alt held down and pressing WASD is a fundamental behaviour in TB, so we can't have
Expand Down

0 comments on commit 1ce7243

Please sign in to comment.