diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-04-18 08:12:38 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-04-18 08:12:38 +0000 |
commit | 3ce2b4373af47b1976bc173488d2928b2ec55dcc (patch) | |
tree | ac4d58deddce3888360de1c03bbe5971b9058bb8 /canvas | |
parent | da63ef866b4b3eb6f58d644f1e60a7cd6a732f5a (diff) |
INTEGRATION: CWS presfixes03 (1.7.2); FILE MERGED
2005/04/08 11:23:24 thb 1.7.2.2: #i36190# Sprite-transform support made it necessary to track update area also for moves (because the sprite size is no longer fixed, but can vary between the enqueuing of the sprite record and the actual repaint; slightly adapted getSpriteRect(), to match bounds actually attained during sprite transform
2005/04/05 15:24:06 thb 1.7.2.1: #i46666# Fixed resource leak (SpriteCanvas::dispose() did not dispose the member maCanvasHelper, which holds references to the backbuffer; fixed on/off problems for stroked lines, the stroke polygons generated by basegfx are not free of mutual intersections.
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/vcl/spritecanvas.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/canvas/source/vcl/spritecanvas.cxx b/canvas/source/vcl/spritecanvas.cxx index ba1917e4e9bf..4b56dda4e860 100644 --- a/canvas/source/vcl/spritecanvas.cxx +++ b/canvas/source/vcl/spritecanvas.cxx @@ -2,9 +2,9 @@ * * $RCSfile: spritecanvas.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: rt $ $Date: 2005-03-30 07:38:54 $ + * last change: $Author: obo $ $Date: 2005-04-18 09:12:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -278,6 +278,8 @@ namespace vclcanvas { tools::LocalGuard aGuard; + maCanvasHelper.disposing(); + mxComponentContext.clear(); mxDevice.reset(); mpBackBuffer.reset(), @@ -450,14 +452,15 @@ namespace vclcanvas void SpriteCanvas::moveSprite( const Sprite::ImplRef& sprite, const Point& rOldPos, - const Point& rNewPos ) + const Point& rNewPos, + const Size& rSpriteSize ) { tools::LocalGuard aGuard; if( !mpRedrawManager.get() ) return; // we're disposed - mpRedrawManager->moveSprite( sprite, rOldPos, rNewPos ); + mpRedrawManager->moveSprite( sprite, rOldPos, rNewPos, rSpriteSize ); } void SpriteCanvas::updateSprite( const Sprite::ImplRef& sprite, |