]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/glcanvas.cpp
select the whole text in the single line text control when its SetFocus() is called...
[wxWidgets.git] / src / gtk / glcanvas.cpp
index 146597dc469e007b09b354f3b968346197fe8dd4..e46cac9e32957f5d9de8c5a77850958ab5bb2aa2 100644 (file)
@@ -426,19 +426,6 @@ void wxGLCanvas::SwapBuffers()
 
 void wxGLCanvas::OnSize(wxSizeEvent& WXUNUSED(event))
 {
-    int width, height;
-    GetClientSize( &width, &height );
-    
-    if (m_glContext && GTK_WIDGET_REALIZED(m_glWidget) )
-    {
-        SetCurrent(); 
-       
-        glViewport(0, 0, (GLint)width, (GLint)height );
-        glMatrixMode(GL_PROJECTION);
-        glLoadIdentity();
-        glFrustum( -1.0, 1.0, -1.0, 1.0, 5.0, 15.0 );
-        glMatrixMode(GL_MODELVIEW);
-    }
 }
 
 void wxGLCanvas::SetCurrent()