Skip to content

Commit

Permalink
Enable high dpi scaling for qt > 5.6.0 (colmap#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
tompollok authored and ahojnnes committed Jan 20, 2018
1 parent 2ec3cd2 commit c07cdd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/exe/colmap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1606,6 +1606,11 @@ int ShowHelp(
}

int main(int argc, char** argv) {

#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif

InitializeGlog(argv);

std::vector<std::pair<std::string, command_func_t>> commands;
Expand Down

0 comments on commit c07cdd3

Please sign in to comment.