From 6490fca6a5dd3d95f1da83515ef6af78347db36a Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Tue, 17 Jul 2007 13:40:28 +0000 Subject: INTEGRATION: CWS presfixes12 (1.8.12); FILE MERGED 2007/02/25 01:10:23 thb 1.8.12.1: #i37778# Cleared up error handling a lot: no longer quenching RuntimeExceptions; reporting assertions in the debug case; ViewLayer now reports resized sprite (which needs re-render from all shapes); fixed missing subset area reduction for glyph-level animations; added return of resize state from Layer::commitLayerBounds(); adapted unit tests to corrected behaviour --- slideshow/source/engine/slidebitmap.cxx | 37 +++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 11 deletions(-) (limited to 'slideshow/source/engine/slidebitmap.cxx') diff --git a/slideshow/source/engine/slidebitmap.cxx b/slideshow/source/engine/slidebitmap.cxx index 03e62d296a37..a01fb362c616 100644 --- a/slideshow/source/engine/slidebitmap.cxx +++ b/slideshow/source/engine/slidebitmap.cxx @@ -4,9 +4,9 @@ * * $RCSfile: slidebitmap.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: kz $ $Date: 2006-12-13 15:20:24 $ + * last change: $Author: obo $ $Date: 2007-07-17 14:40:28 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -42,6 +42,8 @@ #include #include +#include +#include #include @@ -85,18 +87,31 @@ namespace slideshow maOutputPos.getY() ); ::canvas::tools::setRenderStateTransform( aRenderState, aTranslation ); - if( maClipPoly.count() ) + try { - // TODO(P1): Buffer the clip polygon - aRenderState.Clip = - ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon( - rCanvas->getUNOCanvas()->getDevice(), - maClipPoly ); + if( maClipPoly.count() ) + { + // TODO(P1): Buffer the clip polygon + aRenderState.Clip = + ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon( + rCanvas->getUNOCanvas()->getDevice(), + maClipPoly ); + } + + rCanvas->getUNOCanvas()->drawBitmap( mxBitmap, + aViewState, + aRenderState ); + } + catch( uno::Exception& ) + { + OSL_ENSURE( false, + rtl::OUStringToOString( + comphelper::anyToString( cppu::getCaughtException() ), + RTL_TEXTENCODING_UTF8 ).getStr() ); + + return false; } - rCanvas->getUNOCanvas()->drawBitmap( mxBitmap, - aViewState, - aRenderState ); return true; } -- cgit