summaryrefslogtreecommitdiff
path: root/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx
diff options
context:
space:
mode:
authorArmin Weiss <aw@openoffice.org>2008-01-30 11:26:48 +0000
committerArmin Weiss <aw@openoffice.org>2008-01-30 11:26:48 +0000
commit10aa61df3071f40c43735b8f8690cef0668bff03 (patch)
treeb4617728dc12d657e40638f8b7099998964c4175 /drawinglayer/source/processor2d/vclhelperbufferdevice.cxx
parent8a07299fc0caa963cc43d42422cb2270cc105aaa (diff)
Adaptions for strippings
Diffstat (limited to 'drawinglayer/source/processor2d/vclhelperbufferdevice.cxx')
-rw-r--r--drawinglayer/source/processor2d/vclhelperbufferdevice.cxx17
1 files changed, 11 insertions, 6 deletions
diff --git a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx
index 03a47e2a1e58..371a953c6426 100644
--- a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx
+++ b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: vclhelperbufferdevice.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: aw $ $Date: 2007-12-13 16:43:09 $
+ * last change: $Author: aw $ $Date: 2008-01-30 12:25:05 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -45,6 +45,10 @@
#include <vcl/bitmapex.hxx>
#endif
+#ifndef _BGFX_MATRIX_B2DHOMMATRIX_HXX
+#include <basegfx/matrix/b2dhommatrix.hxx>
+#endif
+
//////////////////////////////////////////////////////////////////////////////
// support for rendering Bitmap and BitmapEx contents
@@ -58,10 +62,11 @@ namespace drawinglayer
mpMask(0L),
mpAlpha(0L)
{
- const Rectangle aRectLogic(
- (sal_Int32)floor(rRange.getMinX()), (sal_Int32)floor(rRange.getMinY()),
- (sal_Int32)floor(rRange.getMaxX()) + 1L, (sal_Int32)floor(rRange.getMaxY()) + 1L);
- const Rectangle aRectPixel(rOutDev.LogicToPixel(aRectLogic));
+ basegfx::B2DRange aRangePixel(rRange);
+ aRangePixel.transform(rOutDev.GetViewTransformation());
+ const Rectangle aRectPixel(
+ (sal_Int32)floor(aRangePixel.getMinX()), (sal_Int32)floor(aRangePixel.getMinY()),
+ (sal_Int32)ceil(aRangePixel.getMaxX()), (sal_Int32)ceil(aRangePixel.getMaxY()));
const Point aEmptyPoint;
maDestPixel = Rectangle(aEmptyPoint, rOutDev.GetOutputSizePixel());
maDestPixel.Intersection(aRectPixel);