mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix incorrect opengl viewport size on Windows if scaling != 100%. To be replaced by proper fix later.
This commit is contained in:
parent
7362b6a357
commit
4e97672e1d
@ -77,6 +77,13 @@ int main( int argc, char* argv[] )
|
|||||||
}
|
}
|
||||||
#endif
|
#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
|
// 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
|
// 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.
|
// belonging to different top-level windows through re-parenting.
|
||||||
|
Loading…
Reference in New Issue
Block a user