summaryrefslogtreecommitdiff
path: root/vcl/headless
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-07 10:10:17 +0200
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-07 10:38:22 +0200
commit80f3211a7aeff221718703c445be4c753e0a1067 (patch)
tree6ed9509c1fe8d84bebbb435f7f10d33989d21a4c /vcl/headless
parent163b5fd59fe1e9b8c8a1bcac9dab069c0bcd27e9 (diff)
svp clipping: Rectangle dimensions don't map directly to B2IBox.
Previously the clip region would end up being 1 pixel smaller in both directions than the requested area -- B2IBox considers the bottom-right point to NOT be included in its area, whereas Rectangle considers the bottom-right point to be the last point WITHIN its area. (This is equivalent to the Rectangle's getWidth/GetWidth differentiation.) This is noticeable e.g. with tiled rendering, where images spanning a tile boundary are clipped to paint only the region within a given tile -- however previously they would be clipped by an additional pixel in each direciton, resulting in an empty border along the bottom-right edge. Change-Id: I0ef3098959defc5c82719155c130aa904c04b6b1
Diffstat (limited to 'vcl/headless')
-rw-r--r--vcl/headless/svpgdi.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index de7d3ad3315e..35c582d8f873 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -301,7 +301,7 @@ bool SvpSalGraphics::setClipRegion( const Region& i_rClip )
const Rectangle& aBoundRect = aRectangles[0];
m_aDevice = basebmp::subsetBitmapDevice(
m_aOrigDevice,
- basegfx::B2IBox(aBoundRect.Left(),aBoundRect.Top(),aBoundRect.Right(),aBoundRect.Bottom()) );
+ basegfx::B2IBox(aBoundRect.Left(),aBoundRect.Top(),aBoundRect.Right() + 1,aBoundRect.Bottom() + 1) );
m_bClipSetup = true;
}