Skip to content

Commit

Permalink
Update ApplicationLibCode/Application/RiaGuiApplication.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com>
  • Loading branch information
magnesj and qodo-merge-pro[bot] authored Sep 5, 2024
1 parent a31c7e2 commit 48f7edc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ApplicationLibCode/Application/RiaGuiApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,8 @@ void RiaGuiApplication::applyGuiPreferences( const RiaPreferences*
//--------------------------------------------------------------------------------------------------
int RiaGuiApplication::applicationResolution()
{
if ( RiuMainWindow::instance() ) return RiuMainWindow::instance()->logicalDpiX();
if (auto screen = QGuiApplication::primaryScreen())
return screen->logicalDotsPerInchX();

int defaultDPI = 96;
return defaultDPI;
Expand Down

0 comments on commit 48f7edc

Please sign in to comment.