summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-07-17 13:21:52 +0000
committerOliver Bolte <obo@openoffice.org>2007-07-17 13:21:52 +0000
commita28255a9f45535dee7f832ce70ddbf7eb936e553 (patch)
treecdd6f4edfd93b6f80fb19dab85dec655a0d3f7d2 /canvas
parentc7e4e35bc3cded8a6028e10f8560d2f95bbfe5dc (diff)
INTEGRATION: CWS presfixes12 (1.4.24); FILE MERGED
2007/03/01 13:45:35 thb 1.4.24.2: #i37778# Made compositing mode operational (to e.g. clear a surface to transparent); made cairocanvas compile warning-free under gcc4.1 2007/02/20 22:23:07 thb 1.4.24.1: #i37778# Added XCanvas::clear() method throughout all implementations
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/cairo/cairo_spritehelper.cxx21
1 files changed, 4 insertions, 17 deletions
diff --git a/canvas/source/cairo/cairo_spritehelper.cxx b/canvas/source/cairo/cairo_spritehelper.cxx
index 696ecea6286d..551eb34b71b4 100644
--- a/canvas/source/cairo/cairo_spritehelper.cxx
+++ b/canvas/source/cairo/cairo_spritehelper.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: cairo_spritehelper.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: vg $ $Date: 2006-11-01 14:46:36 $
+ * last change: $Author: obo $ $Date: 2007-07-17 14:21:52 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -110,8 +110,8 @@ namespace cairocanvas
void SpriteHelper::redraw( Cairo* pCairo,
const ::basegfx::B2DPoint& rPos,
- bool& io_bSurfacesDirty,
- bool bBufferedUpdate ) const
+ bool& /*io_bSurfacesDirty*/,
+ bool /*bBufferedUpdate*/ ) const
{
#ifdef CAIRO_CANVAS_PERF_TRACE
struct timespec aTimer;
@@ -187,19 +187,6 @@ namespace cairocanvas
#endif
}
- void SpriteHelper::clearSurface()
- {
- Cairo* pCairo = mpBufferSurface->getCairo();
- const ::basegfx::B2DVector& rSize( getSizePixel() );
-
- cairo_set_operator( pCairo, CAIRO_OPERATOR_SOURCE );
- cairo_set_source_rgba( pCairo, 0, 0, 0, 0 );
- cairo_rectangle( pCairo, 0, 0, rSize.getX(), rSize.getY() );
- cairo_fill( pCairo );
-
- cairo_destroy( pCairo );
- }
-
::basegfx::B2DPolyPolygon SpriteHelper::polyPolygonFromXPolyPolygon2D( uno::Reference< rendering::XPolyPolygon2D >& xPoly ) const
{
return ::canvas::tools::polyPolygonFromXPolyPolygon2D( xPoly );