Skip to content

Commit

Permalink
exp -set before writing the AA flag / screen scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Nov 14, 2023
1 parent a66db5b commit 683bf9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,13 @@ int main(int argc, char *argv[]) {
QCoreApplication::setOrganizationDomain("openhd");
QCoreApplication::setApplicationName("QOpenHD");
{// Original screen resoluton before setting anything
QApplication a(argc, argv);
const auto screen=QGuiApplication::primaryScreen();
if(screen){
const auto actual_size=screen->size();
QRenderStats::instance().set_screen_width_height(actual_size.width(),actual_size.height());
}
// a is deleted again
}

QSettings settings;
Expand Down

0 comments on commit 683bf9e

Please sign in to comment.