]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/opengl/cube/cube.cpp
prevent explicitly set client size from being changed when frame extents become known
[wxWidgets.git] / samples / opengl / cube / cube.cpp
index ac4ea822404d374727ad34aa3b88e7741c853a6f..411979b571040299f32c67cbb9e7c7ea29ebe31c 100644 (file)
@@ -304,7 +304,7 @@ void TestGLCanvas::OnSize(wxSizeEvent& event)
     // don't prevent default processing from taking place
     event.Skip();
 
-    if ( !IsShown() )
+    if ( !IsShownOnScreen() )
         return;
 
     // set GL viewport (not called by wxGLCanvas::OnSize on all platforms...)