X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..520e470fdd0daef09c77938db642e4583933c90d:/src/gtk/dcscreen.cpp?ds=sidebyside diff --git a/src/gtk/dcscreen.cpp b/src/gtk/dcscreen.cpp index 9f5c0cacc6..c3a9303751 100644 --- a/src/gtk/dcscreen.cpp +++ b/src/gtk/dcscreen.cpp @@ -25,7 +25,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxScreenDC,wxPaintDC) wxScreenDC::wxScreenDC(void) { m_ok = FALSE; - m_window = NULL; + m_window = (GdkWindow *) NULL; m_cmap = gdk_colormap_get_system(); m_window = GDK_ROOT_PARENT(); @@ -36,12 +36,12 @@ wxScreenDC::wxScreenDC(void) 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) { EndDrawingOnTop(); -}; +} bool wxScreenDC::StartDrawingOnTop( wxWindow *WXUNUSED(window) ) { @@ -51,7 +51,7 @@ bool wxScreenDC::StartDrawingOnTop( wxWindow *WXUNUSED(window) ) { StartDrawingOnTop(); return; - }; + } wxRectangle rect; rect.x = 0; rect.y = 0; @@ -63,7 +63,7 @@ bool wxScreenDC::StartDrawingOnTop( wxWindow *WXUNUSED(window) ) StartDrawingOnTop( &rect ); return TRUE; */ -}; +} bool wxScreenDC::StartDrawingOnTop( wxRectangle *WXUNUSED(rect) ) { @@ -79,7 +79,7 @@ bool wxScreenDC::StartDrawingOnTop( wxRectangle *WXUNUSED(rect) ) y = rect->y; width = rect->width; height = rect->height; - }; + } GTK cannot set transparent backgrounds. :-( @@ -107,7 +107,7 @@ bool wxScreenDC::StartDrawingOnTop( wxRectangle *WXUNUSED(rect) ) return TRUE; */ -}; +} bool wxScreenDC::EndDrawingOnTop(void) { @@ -118,4 +118,5 @@ bool wxScreenDC::EndDrawingOnTop(void) m_isOk = FALSE; return TRUE; */ -}; +} +