00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "doublebuffer.h"
00010
00011 #ifdef __WXGTK__
00012
00013 #if wxCHECK_VERSION(2,6,3)
00014 void SetDoubleBuffer (wxWindow * pWindow, bool DoubleBuffer)
00015 {
00016 #ifdef __WXGTK20__
00017 pWindow->SetDoubleBuffered( DoubleBuffer );
00018 #endif // __WXGTK20__
00019 }
00020
00021 #else // version 2.6.3
00022
00023
00024
00025
00026 #include <wx/gtk/win_gtk.h>
00027
00028 void SetDoubleBuffer (wxWindow * pWindow, bool DoubleBuffer)
00029 {
00030 #ifdef __WXGTK20__
00031 gtk_widget_set_double_buffered( pWindow->m_wxwindow, DoubleBuffer );
00032 #endif // __WXGTK20__
00033 gtk_pizza_set_clear( GTK_PIZZA(pWindow->m_wxwindow), DoubleBuffer );
00034 }
00035 #endif // version 2.6.3
00036
00037 #else // __WXGTK__
00038 void SetDoubleBuffer (wxWindow * pWindow, bool DoubleBuffer) {return;}
00039 #endif // __WXGTK__
00040