summaryrefslogtreecommitdiff
path: root/vcl/headless
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-23 16:05:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-23 16:35:59 +0000
commit05ad682e73fb4b654056d7d5c49a7ac2dca4b10a (patch)
tree077957001e0172f565ae0861ba8e3e90776510d3 /vcl/headless
parentcbd48230bb3a90c4c485fa33123c6653234e02e9 (diff)
SvpSalGraphics::drawRect needs to adjust the rect bounds for line drawing
like X11SalGraphicsImpl::drawRect does now the focus borders in the layouts pane of impress update correctly as the border is added/removed as you pass the mouse over them with the gtk3 plugin Change-Id: I1f03065049c2aee2e3c28e7a16777e9b06e34c6e
Diffstat (limited to 'vcl/headless')
-rw-r--r--vcl/headless/svpgdi.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 49eff809c64a..526d34947cc3 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -416,15 +416,19 @@ void SvpSalGraphics::drawRect( long nX, long nY, long nWidth, long nHeight )
{
if ((m_bUseLineColor || m_bUseFillColor) && m_aDevice)
{
- basegfx::B2DPolygon aRect = basegfx::tools::createPolygonFromRect( basegfx::B2DRectangle( nX, nY, nX+nWidth, nY+nHeight ) );
ensureClip(); // FIXME: for ...
if( m_bUseFillColor )
{
+ basegfx::B2DPolygon aRect = basegfx::tools::createPolygonFromRect( basegfx::B2DRectangle( nX, nY, nX+nWidth, nY+nHeight ) );
basegfx::B2DPolyPolygon aPolyPoly( aRect );
m_aDevice->fillPolyPolygon( aPolyPoly, m_aFillColor, m_aDrawMode, m_aClipMap );
}
if( m_bUseLineColor )
+ {
+ // need same -1 hack as X11SalGraphicsImpl::drawRect
+ basegfx::B2DPolygon aRect = basegfx::tools::createPolygonFromRect( basegfx::B2DRectangle( nX, nY, nX+nWidth-1, nY+nHeight-1 ) );
m_aDevice->drawPolygon( aRect, m_aLineColor, m_aDrawMode, m_aClipMap );
+ }
}
dbgOut( m_aDevice );
}