]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/glcanvas/samples/penguin/penguin.cpp
Since wxPanel is now AutoLayout aware, removed indirect auto layouting
[wxWidgets.git] / utils / glcanvas / samples / penguin / penguin.cpp
index 0d49b80611955ebd7efc1c1d085c694ed0713953..8eaed6a1d9bd74fb9361e90604628e42da3190fd 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "penguin.h"
 #include <GL/glu.h>
-#include "wx/gtk/win_gtk.h"
 
 #define VIEW_ASPECT 1.3
 
@@ -106,14 +105,6 @@ void TestGLCanvas::OnPaint( wxPaintEvent& event )
     if (!GetContext()) return;
 #endif
 
-    printf( "on refresh.\n" );
-    int x,y;
-    GtkMyFixed *fixed = GTK_MYFIXED(m_wxwindow);
-    gdk_window_get_size( m_wxwindow->window, &x, &y );
-    printf( "-> window %d %d.\n", x, y );
-    gdk_window_get_size( fixed->bin_window, &x, &y );
-    printf( "-> bin_window %d %d.\n", x, y );
-    
     SetCurrent();
     
     /* initialize OpenGL */
@@ -155,8 +146,6 @@ void TestGLCanvas::OnSize(wxSizeEvent& event)
     int width, height;
     GetClientSize(& width, & height);
     
-    printf( "onsize %d %d.\n", width, height );
-    
 #ifndef __WXMOTIF__
     if (GetContext())
 #endif