diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index acab97e929..a9fbcdc808 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -962,7 +962,8 @@ unsigned int OPENGL_GAL::getNewGroupNumber() bool OPENGL_GAL::runTest() { - wxDialog dlgtest( GetParent(), -1, wxT( "opengl test" ), wxPoint( 50, 50 ), wxSize( 50, 50 ) ); + wxDialog dlgtest( GetParent(), -1, wxT( "opengl test" ), wxPoint( 50, 50 ), + wxDLG_UNIT( GetParent(), wxSize( 50, 50 ) ) ); OPENGL_TEST* test = new OPENGL_TEST( &dlgtest, this ); dlgtest.Raise(); // on Linux, on some windows managers (Unity for instance) this is needed to actually show the dialog