]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/minifram.cpp
fixing infinite recursion for rotated text, introduced in cleanup r57915
[wxWidgets.git] / src / gtk1 / minifram.cpp
index f0ad104feaaa404c0975827a8fc4cb8f4c655c87..4b1572b05cd55aa2482e3eea63b478a240a27613 100644 (file)
@@ -19,6 +19,7 @@
 #endif
 
 #include "gtk/gtk.h"
+#include "wx/dcclient.h"
 #include "wx/gtk1/win_gtk.h"
 #include "wx/gtk1/private.h"
 #include "wx/gtk1/dcclient.h"
@@ -104,7 +105,7 @@ static void gtk_window_own_expose_callback( GtkWidget *widget, GdkEventExpose *g
         gdk_gc_unref( gc );
 
         // Hack alert
-        wx_static_cast(wxClientDCImpl *, dc.GetImpl())->m_window = pizza->bin_window;
+        static_cast<wxClientDCImpl *>(dc.GetImpl())->m_window = pizza->bin_window;
         dc.SetTextForeground( *wxWHITE );
         dc.DrawText( win->GetTitle(), 6, 3 );
     }
@@ -150,7 +151,7 @@ static void gtk_window_own_draw_callback( GtkWidget *widget, GdkRectangle *WXUNU
         gdk_gc_unref( gc );
 
         // Hack alert
-        wx_static_cast(wxClientDCImpl *, dc.GetImpl())->m_window = pizza->bin_window;
+        static_cast<wxClientDCImpl *>(dc.GetImpl())->m_window = pizza->bin_window;
         dc.SetTextForeground( *wxWHITE );
         dc.DrawText( win->GetTitle(), 6, 3 );
     }