|
From: <ai...@us...> - 2013-08-09 16:21:54
|
Revision: 12475
http://sourceforge.net/p/plplot/code/12475
Author: airwin
Date: 2013-08-09 16:21:45 +0000 (Fri, 09 Aug 2013)
Log Message:
-----------
Use correct API for DrawPolygon. Thanks to Joost Kuckartz for
spotting this error, and he reports this fix solves an offset issue he
had with wxwidgets plots.
Modified Paths:
--------------
trunk/drivers/wxwidgets_dc.cpp
Modified: trunk/drivers/wxwidgets_dc.cpp
===================================================================
--- trunk/drivers/wxwidgets_dc.cpp 2013-08-04 18:13:16 UTC (rev 12474)
+++ trunk/drivers/wxwidgets_dc.cpp 2013-08-09 16:21:45 UTC (rev 12475)
@@ -165,6 +165,8 @@
void wxPLDevDC::FillPolygon( PLStream *pls )
{
wxPoint *points = new wxPoint[pls->dev_npts];
+ wxCoord xoffset = 0;
+ wxCoord yoffset = 0;
for ( int i = 0; i < pls->dev_npts; i++ )
{
@@ -176,11 +178,11 @@
if ( pls->dev_eofill )
{
- m_dc->DrawPolygon( pls->dev_npts, points, wxODDEVEN_RULE );
+ m_dc->DrawPolygon( pls->dev_npts, points, xoffset, yoffset, wxODDEVEN_RULE );
}
else
{
- m_dc->DrawPolygon( pls->dev_npts, points, wxWINDING_RULE );
+ m_dc->DrawPolygon( pls->dev_npts, points, xoffset, yoffset, wxWINDING_RULE );
}
delete[] points;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|