]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/graphicc.cpp
No real changes, just simplify wxGDIPlusContext::GetTextExtent() a bit.
[wxWidgets.git] / src / generic / graphicc.cpp
index 04bb3432bfe287cd941c03aa18b6e1bb96bbdfaf..49a50d9e694229513bfe10e7779abfd058ba121b 100644 (file)
@@ -335,7 +335,7 @@ public:
 
     virtual cairo_surface_t* GetCairoSurface() { return m_surface; }
     virtual cairo_pattern_t* GetCairoPattern() { return m_pattern; }
-    void* GetNativeBitmap() const { return (void*)m_surface; }
+    virtual void* GetNativeBitmap() const { return m_surface; }
     virtual wxSize GetSize() { return wxSize(m_width, m_height); }
 
 #if wxUSE_IMAGE
@@ -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 )