diff options
author | Kurt Zenker <kz@openoffice.org> | 2006-12-13 13:39:19 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2006-12-13 13:39:19 +0000 |
commit | 4c3cb25fbd436cac444ccc668fbd1ae5b39d7ab5 (patch) | |
tree | 511ac50811c6106733662acc8c2aff596dc402d5 /canvas/source | |
parent | 6fd593199d1cb308754ed97be1caa18062040785 (diff) |
INTEGRATION: CWS presfixes09 (1.3.8); FILE MERGED
2006/11/15 13:28:49 thb 1.3.8.3: RESYNC: (1.4-1.5); FILE MERGED
2006/10/18 13:55:54 thb 1.3.8.2: RESYNC: (1.3-1.4); FILE MERGED
2006/10/02 09:46:09 thb 1.3.8.1: #i49357# Enabling reads from canvas surfaces as XBitmaps
Diffstat (limited to 'canvas/source')
-rw-r--r-- | canvas/source/cairo/cairo_canvashelper.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx index 3c7715707195..0c3a93bc5ab5 100644 --- a/canvas/source/cairo/cairo_canvashelper.cxx +++ b/canvas/source/cairo/cairo_canvashelper.cxx @@ -4,9 +4,9 @@ * * $RCSfile: cairo_canvashelper.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: vg $ $Date: 2006-11-01 14:45:42 $ + * last change: $Author: kz $ $Date: 2006-12-13 14:39:19 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -241,6 +241,15 @@ namespace cairocanvas return pBitmapImpl->getSurface(); } + + SpriteCanvas* pCanvasImpl = dynamic_cast< SpriteCanvas* >( xBitmap.get() ); + if( pCanvasImpl && pCanvasImpl->getBufferSurface () ) + { + bHasAlpha = false; + + return pCanvasImpl->getBackgroundSurface(); + } + return NULL; } |