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

@@ -1198,6 +1198,9 @@ void wxGnomePrintDC::DoDrawPolyPolygon(int n, int count[], wxPoint points[], wxC
void wxGnomePrintDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
{
width--;
height--;
if (m_brush.GetStyle () != wxTRANSPARENT)
{
SetBrush( m_brush );
@@ -1233,7 +1236,10 @@ void wxGnomePrintDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoor
void wxGnomePrintDC::DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius)
{
wxCoord rad = (wxCoord) radius;
width--;
height--;
wxCoord rad = wxRound( radius );
if (m_brush.GetStyle() != wxTRANSPARENT)
{
@@ -1348,6 +1354,9 @@ void wxGnomePrintDC::makeEllipticalPath(wxCoord x, wxCoord y,
void wxGnomePrintDC::DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
{
width--;
height--;
if (m_brush.GetStyle () != wxTRANSPARENT)
{
SetBrush( m_brush );