From 193bde0637ccdfa2d08c978dba8d9418cef1deca Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Wed, 22 Mar 2006 09:59:10 +0000 Subject: [PATCH] INTEGRATION: CWS cairofixes01 (1.2.2); FILE MERGED 2006/03/02 17:56:17 radekdoulik 1.2.2.2: Issue number: 62722 Submitted by: radekdoulik Reviewed by: radekdoulik 2006-02-22 Radek Doulik * build/src680-m152/canvas/source/cairo/cairo_canvashelper_text.cxx (cairocanvas): use depth of surface when creating virtual vcl device * build/src680-m152/canvas/source/cairo/cairo_cairo.cxx (cairo): new function, returns surface bit depth 2006/03/02 17:40:59 radekdoulik 1.2.2.1: Issue number: 62722 Submitted by: radekdoulik Reviewed by: radekdoulik optimize resizing of cairo surfaces --- canvas/source/cairo/cairo_cairo.hxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/canvas/source/cairo/cairo_cairo.hxx b/canvas/source/cairo/cairo_cairo.hxx index 043ff32497ec..fa5f11c5f2ea 100644 --- a/canvas/source/cairo/cairo_cairo.hxx +++ b/canvas/source/cairo/cairo_cairo.hxx @@ -37,6 +37,7 @@ namespace cairo { mpDisplay( NULL ), mhDrawable( 0 ), mpSysData( NULL ), + mpRenderFormat( NULL ), mbFreePixmap( false ), mnRefCount( 1 ) { @@ -76,6 +77,11 @@ namespace cairo { { return mpRenderFormat; } + + // use only for surfaces made on X Drawables + void Resize( int width, int height ); + + int getDepth(); }; }