Applied PS patch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -650,6 +650,9 @@ void wxPostScriptDC::DoDrawPolygon (int n, wxPoint points[], wxCoord xoffset, wx
|
||||
wxCoord xx = XLOG2DEV(points[0].x + xoffset);
|
||||
wxCoord yy = YLOG2DEV(points[0].y + yoffset);
|
||||
|
||||
wxCoord xx0 = xx;
|
||||
wxCoord yy0 = yy;
|
||||
|
||||
fprintf( m_pstream, "%d %d moveto\n", xx, yy );
|
||||
|
||||
CalcBoundingBox( points[0].x + xoffset, points[0].y + yoffset );
|
||||
@@ -664,7 +667,8 @@ void wxPostScriptDC::DoDrawPolygon (int n, wxPoint points[], wxCoord xoffset, wx
|
||||
CalcBoundingBox( points[i].x + xoffset, points[i].y + yoffset);
|
||||
}
|
||||
|
||||
fprintf( m_pstream, "fill\n" );
|
||||
fprintf( m_pstream, "%d %d lineto\n", xx0, yy0 );
|
||||
fprintf( m_pstream, "stroke\n" );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -838,7 +842,7 @@ void wxPostScriptDC::DoDrawEllipse (wxCoord x, wxCoord y, wxCoord width, wxCoord
|
||||
"%d %d %d %d 0 360 ellipse\n"
|
||||
"fill\n",
|
||||
XLOG2DEV(x + width / 2), YLOG2DEV(y + height / 2),
|
||||
XLOG2DEV(width / 2), YLOG2DEVREL(height / 2) );
|
||||
XLOG2DEVREL(width / 2), YLOG2DEVREL(height / 2) );
|
||||
|
||||
CalcBoundingBox( x - width, y - height );
|
||||
CalcBoundingBox( x + width, y + height );
|
||||
@@ -853,7 +857,7 @@ void wxPostScriptDC::DoDrawEllipse (wxCoord x, wxCoord y, wxCoord width, wxCoord
|
||||
"%d %d %d %d 0 360 ellipse\n"
|
||||
"stroke\n",
|
||||
XLOG2DEV(x + width / 2), YLOG2DEV(y + height / 2),
|
||||
XLOG2DEV(width / 2), YLOG2DEVREL(height / 2) );
|
||||
XLOG2DEVREL(width / 2), YLOG2DEVREL(height / 2) );
|
||||
|
||||
CalcBoundingBox( x - width, y - height );
|
||||
CalcBoundingBox( x + width, y + height );
|
||||
|
Reference in New Issue
Block a user