summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--canvas/source/cairo/cairo_cairo.cxx19
1 files changed, 17 insertions, 2 deletions
diff --git a/canvas/source/cairo/cairo_cairo.cxx b/canvas/source/cairo/cairo_cairo.cxx
index d1e35bfeb2f9..a7c01c150900 100644
--- a/canvas/source/cairo/cairo_cairo.cxx
+++ b/canvas/source/cairo/cairo_cairo.cxx
@@ -6,8 +6,8 @@
namespace cairo
{
-#include <cairo/cairo-xlib.h>
-#include <cairo/cairo-xlib-xrender.h>
+#include <cairo-xlib.h>
+#include <cairo-xlib-xrender.h>
Surface::Surface( const void* pSysData, int x, int y, int width, int height )
: mnRefCount( 1 ),
@@ -74,4 +74,19 @@ namespace cairo
} else
return new Surface( mpSysData, mpDisplay, 0, NULL, cairo_surface_create_similar( mpSurface, aContent, width, height ) );
}
+
+ void
+ Surface::Resize( int width, int height )
+ {
+ cairo_xlib_surface_set_size( mpSurface, width, height );
+ }
+
+ int
+ Surface::getDepth()
+ {
+ if( mpRenderFormat )
+ return ( ( XRenderPictFormat * ) mpRenderFormat )->depth;
+
+ return -1;
+ }
}