mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
OpenGL DPI scaling support (#11883)
Scale opengl width/height based on primary screen DPI scaling.
This commit is contained in:
1 parent
f6109cab2b
commit
dbea0e2593
6 files changed
+57
-39
No files matched your search
@@ -78,13 +78,6 @@ 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.
|
||||
|
||||
Reference in new issue
Block a user