diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-01-29 07:01:49 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-01-29 07:01:49 +0000 |
commit | 1c0b944ad62997b7ffb2545cb4937c36c490b91b (patch) | |
tree | 674abfece195eb88ce8fc575d7fad84b18063273 | |
parent | a3021d32669f9de4d7568f178f65cfefbe56ebfc (diff) |
INTEGRATION: CWS thbpp10 (1.7.14); FILE MERGED
2008/01/14 15:54:21 thb 1.7.14.1: #i84049# Checking for render existence - patch courtesy jnavrati
-rw-r--r-- | canvas/source/cairo/cairo_spritecanvas.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/canvas/source/cairo/cairo_spritecanvas.cxx b/canvas/source/cairo/cairo_spritecanvas.cxx index d9697c061245..cd1a56308e95 100644 --- a/canvas/source/cairo/cairo_spritecanvas.cxx +++ b/canvas/source/cairo/cairo_spritecanvas.cxx @@ -4,9 +4,9 @@ * * $RCSfile: cairo_spritecanvas.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: rt $ $Date: 2007-11-09 11:32:11 $ + * last change: $Author: vg $ $Date: 2008-01-29 08:01:49 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -56,7 +56,7 @@ #include <basegfx/numeric/ftools.hxx> #include "cairo_spritecanvas.hxx" - +#include "cairo_devicehelper.hxx" using namespace ::cairo; using namespace ::com::sun::star; @@ -100,6 +100,10 @@ namespace cairocanvas CHECK_AND_THROW( pOutputWindow != NULL, "SpriteCanvas::SpriteCanvas: invalid Window pointer" ); + bool bHasXRender = HasXRender( cairocanvas::GetSysData(pOutputWindow) ); + CHECK_AND_THROW( bHasXRender == true, + "SpriteCanvas::SpriteCanvas: No RENDER extension" ); + Size aPixelSize( pOutputWindow->GetOutputSizePixel() ); const ::basegfx::B2ISize aSize( aPixelSize.Width(), aPixelSize.Height() ); |