- m_ok = FALSE;
- m_window = NULL;
- m_cmap = gdk_colormap_get_system();
-
- m_window = GDK_ROOT_PARENT();
-
- SetUpDC();
-
- gdk_gc_set_subwindow( m_penGC, GDK_INCLUDE_INFERIORS );
- gdk_gc_set_subwindow( m_brushGC, GDK_INCLUDE_INFERIORS );
- gdk_gc_set_subwindow( m_textGC, GDK_INCLUDE_INFERIORS );
- gdk_gc_set_subwindow( m_bgGC, GDK_INCLUDE_INFERIORS );
-};
-
-wxScreenDC::~wxScreenDC(void)
+ m_ok = FALSE;
+ m_cmap = gdk_colormap_get_system();
+ m_window = GDK_ROOT_PARENT();
+
+#ifdef __WXGTK20__
+ m_context = gdk_pango_context_get();
+ m_layout = pango_layout_new( m_context );
+// m_fontdesc = pango_font_description_copy( widget->style->font_desc );
+#endif
+
+ m_isScreenDC = TRUE;
+
+ SetUpDC();
+
+ gdk_gc_set_subwindow( m_penGC, GDK_INCLUDE_INFERIORS );
+ gdk_gc_set_subwindow( m_brushGC, GDK_INCLUDE_INFERIORS );
+ gdk_gc_set_subwindow( m_textGC, GDK_INCLUDE_INFERIORS );
+ gdk_gc_set_subwindow( m_bgGC, GDK_INCLUDE_INFERIORS );
+}
+
+wxScreenDC::~wxScreenDC()
+{
+ gdk_gc_set_subwindow( m_penGC, GDK_CLIP_BY_CHILDREN );
+ gdk_gc_set_subwindow( m_brushGC, GDK_CLIP_BY_CHILDREN );
+ gdk_gc_set_subwindow( m_textGC, GDK_CLIP_BY_CHILDREN );
+ gdk_gc_set_subwindow( m_bgGC, GDK_CLIP_BY_CHILDREN );
+
+ EndDrawingOnTop();
+}
+
+bool wxScreenDC::StartDrawingOnTop( wxWindow * )