compilation fix for MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -14,7 +14,16 @@
|
||||
#pragma interface
|
||||
#endif
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/setup.h"
|
||||
#include "wx/defs.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#if wxUSE_POSTSCRIPT
|
||||
|
||||
@@ -595,12 +604,15 @@ void wxPostScriptDC::DrawLines (int n, wxPoint points[], long xoffset, long yoff
|
||||
{
|
||||
wxCHECK_RET( m_ok && m_pstream, "invalid postscript dc" );
|
||||
|
||||
if (m_pen.GetStyle() == wxTRANSPARENT) return;
|
||||
if (n <= 0) return;
|
||||
if (m_pen.GetStyle() == wxTRANSPARENT)
|
||||
return;
|
||||
if (n <= 0)
|
||||
return;
|
||||
|
||||
SetPen (m_pen);
|
||||
|
||||
for (int i=0; i<n ; ++i)
|
||||
int i;
|
||||
for ( i =0; i<n ; i++ )
|
||||
{
|
||||
CalcBoundingBox( XLOG2DEV(points[i].x+xoffset), YLOG2DEV(points[i].y+yoffset));
|
||||
}
|
||||
@@ -609,7 +621,7 @@ void wxPostScriptDC::DrawLines (int n, wxPoint points[], long xoffset, long yoff
|
||||
<< XLOG2DEV(points[0].x+xoffset) << " "
|
||||
<< YLOG2DEV(points[0].y+yoffset) << " moveto\n";
|
||||
|
||||
for (int i = 1; i < n; i++)
|
||||
for (i = 1; i < n; i++)
|
||||
{
|
||||
*m_pstream << XLOG2DEV(points[i].x+xoffset) << " "
|
||||
<< YLOG2DEV(points[i].y+yoffset) << " lineto\n";
|
||||
@@ -1187,7 +1199,10 @@ void wxPostScriptDC::SetAxisOrientation( bool xLeftRight, bool yBottomUp )
|
||||
m_signX = (xLeftRight ? 1 : -1);
|
||||
m_signY = (yBottomUp ? 1 : -1);
|
||||
|
||||
// FIXME there is no such function in MSW
|
||||
#ifndef __WXMSW__
|
||||
ComputeScaleAndOrigin();
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxPostScriptDC::SetDeviceOrigin( long x, long y )
|
||||
|
Reference in New Issue
Block a user