]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/glcanvas/samples/isosurf/isosurf.cpp
My last patch for status bar size events wasn't perfect
[wxWidgets.git] / utils / glcanvas / samples / isosurf / isosurf.cpp
index 31b49e3b519b3c6928501d673844008d321bf471..fe456fa33da98b31c625ed7f1ff8bcd99e6676b8 100644 (file)
@@ -255,13 +255,13 @@ bool MyApp::OnInit(void)
 #endif
 
   if(!doubleBuffer
-#ifdef __X__ // JACS
+#ifdef __WXGTK__ // JACS
    || !wxGLCanvas::HaveVisual(gl_attrib)
 #endif
    )
    {
       printf("don't have double buffer, disabling\n");
-#ifndef __WXMSW__
+#ifdef __WXGTK__
       gl_attrib[9] = None;
 #endif
       doubleBuffer = GL_FALSE;
@@ -387,7 +387,7 @@ void TestGLCanvas::OnChar(wxKeyEvent& event)
        break;
     }
 
-    Refresh();
+    Refresh(FALSE);
 }
 
 void TestGLCanvas::OnMouseEvent(wxMouseEvent& event)
@@ -402,7 +402,7 @@ void TestGLCanvas::OnMouseEvent(wxMouseEvent& event)
        } else {
            yrot += (event.GetX() - last_x)*1.0;
            xrot += (event.GetY() - last_y)*1.0;
-           Refresh();
+           Refresh(FALSE);
        }
        last_x = event.GetX();
        last_y = event.GetY();