INTEGRATION: CWS canvas05 (1.2.2); FILE MERGED

2008/06/03 23:52:24 thb 1.2.2.4: Removed extra level of indirection for getting a graphics for a surface; removed some unused code
2008/04/21 07:30:54 thb 1.2.2.3: RESYNC: (1.2-1.3); FILE MERGED
2008/01/22 00:25:24 thb 1.2.2.2: #i81092# Making gdiplus and dx canvas more independent
2007/12/20 22:18:57 thb 1.2.2.1: #i81092# #i78888# #i78925# #i79258# #i79437# #i84784# Large canvas rework, completing various areas such as color spaces, bitmap data access, true sprite and non-sprite implementations, and upstreaming the canvas parts of rodos emf+ rendering
This commit is contained in:
Kurt Zenker
2008-06-24 09:38:33 +00:00
parent da2cb80ca5
commit 8f905b7a86

View File

@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: dx_spritehelper.cxx,v $ * $RCSfile: dx_spritehelper.cxx,v $
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
@@ -28,9 +28,13 @@
* *
************************************************************************/ ************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_canvas.hxx"
#include <ctype.h> // don't ask. msdev breaks otherwise... #include <ctype.h> // don't ask. msdev breaks otherwise...
#include <canvas/debug.hxx> #include <canvas/debug.hxx>
#include <canvas/verbosetrace.hxx> #include <canvas/verbosetrace.hxx>
#include <tools/diagnose_ex.h>
#include <rtl/logfile.hxx> #include <rtl/logfile.hxx>
#include <rtl/math.hxx> #include <rtl/math.hxx>
@@ -50,7 +54,6 @@
#include "dx_canvascustomsprite.hxx" #include "dx_canvascustomsprite.hxx"
#include "dx_spritehelper.hxx" #include "dx_spritehelper.hxx"
#include "dx_impltools.hxx" #include "dx_impltools.hxx"
#include "dx_surfacegraphics.hxx"
#include <memory> #include <memory>
@@ -66,13 +69,13 @@ namespace dxcanvas
{ {
} }
void SpriteHelper::init( const geometry::RealSize2D& rSpriteSize, void SpriteHelper::init( const geometry::RealSize2D& rSpriteSize,
const SpriteCanvasRef& rSpriteCanvas, const SpriteCanvasRef& rSpriteCanvas,
const IDXRenderModuleSharedPtr& rRenderModule, const IDXRenderModuleSharedPtr& rRenderModule,
const DXBitmapSharedPtr rBitmap, const DXSurfaceBitmapSharedPtr rBitmap,
bool bShowSpriteBounds ) bool bShowSpriteBounds )
{ {
ENSURE_AND_THROW( rSpriteCanvas.get() && ENSURE_OR_THROW( rSpriteCanvas.get() &&
rRenderModule && rRenderModule &&
rBitmap, rBitmap,
"SpriteHelper::init(): Invalid device, sprite canvas or surface" ); "SpriteHelper::init(): Invalid device, sprite canvas or surface" );