Skip to content

Commit

Permalink
Fix incorrect opengl viewport size on Windows if scaling != 100%. To …
Browse files Browse the repository at this point in the history
…be replaced by proper fix later.
  • Loading branch information
jonjenssen committed Oct 3, 2024
1 parent 7362b6a commit 4e97672
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ApplicationExeCode/RiaMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ int main( int argc, char* argv[] )
}
#endif

#ifdef WIN32
// Temporary workaround for incorrect scaling of opengl viewport on windows with dpi scaling != 100%
// Reverts scaling behaviour to Qt5 style
// Should be replaced by proper scaling of x and y coordinates in caf::Viewer
qputenv( "QT_ENABLE_HIGHDPI_SCALING", "0" );
#endif

// The Qt::AA_ShareOpenGLContexts setting is needed when we have multiple viz widgets in flight
// and we have a setup where these widgets belong to different top-level windows, or end up
// belonging to different top-level windows through re-parenting.
Expand Down

0 comments on commit 4e97672

Please sign in to comment.