#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;
break;
}
- Refresh();
+ Refresh(FALSE);
}
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();