diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index ca611d155f..49a50d9e69 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -2410,9 +2410,10 @@ wxGraphicsContext * wxCairoRenderer::CreateMeasuringContext() ENSURE_LOADED_OR_RETURN(NULL); #ifdef __WXGTK__ return CreateContextFromNativeWindow(gdk_get_default_root_window()); -#endif +#else return NULL; // TODO +#endif } wxGraphicsContext * wxCairoRenderer::CreateContext( wxWindow* window ) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 41f3947cfa..4f9ce50f42 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -4151,9 +4151,9 @@ bool wxWindowGTK::IsTransparentBackgroundSupported(wxString* reason) const *reason = _("This program was compiled with a too old version of GTK+, " "please rebuild with GTK+ 2.12 or newer."); } -#endif // wxGTK_HAS_COMPOSITING_SUPPORT/!wxGTK_HAS_COMPOSITING_SUPPORT return false; +#endif // wxGTK_HAS_COMPOSITING_SUPPORT/!wxGTK_HAS_COMPOSITING_SUPPORT } // ----------------------------------------------------------------------------