Reduce width and height of drawing ops by one in all vector printing backends

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-09-24 21:07:20 +00:00
parent ed8385818f
commit 728ddc45e0
3 changed files with 28 additions and 1 deletions

View File

@@ -737,6 +737,9 @@ void wxPostScriptDC::DoDrawLines (int n, wxPoint points[], wxCoord xoffset, wxCo
void wxPostScriptDC::DoDrawRectangle (wxCoord x, wxCoord y, wxCoord width, wxCoord height)
{
wxCHECK_RET( m_ok, wxT("invalid postscript dc") );
width--;
height--;
if (m_brush.GetStyle () != wxTRANSPARENT)
{
@@ -789,6 +792,9 @@ void wxPostScriptDC::DoDrawRoundedRectangle (wxCoord x, wxCoord y, wxCoord width
{
wxCHECK_RET( m_ok, wxT("invalid postscript dc") );
width--;
height--;
if (radius < 0.0)
{
// Now, a negative radius is interpreted to mean
@@ -868,6 +874,9 @@ void wxPostScriptDC::DoDrawEllipse (wxCoord x, wxCoord y, wxCoord width, wxCoord
{
wxCHECK_RET( m_ok, wxT("invalid postscript dc") );
width--;
height--;
if (m_brush.GetStyle () != wxTRANSPARENT)
{
SetBrush (m_brush);