Warning fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-07-20 17:26:52 +00:00
parent 21d6b09b10
commit 9de1027152
2 changed files with 37 additions and 46 deletions

View File

@@ -848,43 +848,40 @@ void wxDC::DoDrawPoint(
); );
} // end of wxDC::DoDrawPoint } // end of wxDC::DoDrawPoint
void wxDC::DoDrawPolygon( void wxDC::DoDrawPolygon( int n,
int n wxPoint vPoints[],
, wxPoint vPoints[] wxCoord vXoffset,
, wxCoord vXoffset wxCoord vYoffset,
, wxCoord vYoffset int nFillStyle )
, int nFillStyle
)
{ {
ULONG ulCount = 1; // Number of polygons. ULONG ulCount = 1; // Number of polygons.
POLYGON vPlgn; // polygon. POLYGON vPlgn; // polygon.
ULONG flOptions = 0L; // Drawing options. ULONG flOptions = 0L; // Drawing options.
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
// This contains fields of option bits... to draw boundary lines as well as // This contains fields of option bits... to draw boundary lines as well as
// the area interior. // the area interior.
// //
// Drawing boundary lines: // Drawing boundary lines:
// POLYGON_NOBOUNDARY Does not draw boundary lines. // POLYGON_NOBOUNDARY Does not draw boundary lines.
// POLYGON_BOUNDARY Draws boundary lines (the default). // POLYGON_BOUNDARY Draws boundary lines (the default).
// //
// Construction of the area interior: // Construction of the area interior:
// POLYGON_ALTERNATE Constructs interior in alternate mode // POLYGON_ALTERNATE Constructs interior in alternate mode
// (the default). // (the default).
// POLYGON_WINDING Constructs interior in winding mode. // POLYGON_WINDING Constructs interior in winding mode.
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
ULONG flModel = POLYGON_INCL; // Drawing model. ULONG flModel = POLYGON_INCL; // Drawing model.
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
// Drawing model. // Drawing model.
// POLYGON_INCL Fill is inclusive of bottom right (the default). // POLYGON_INCL Fill is inclusive of bottom right (the default).
// POLYGON_EXCL Fill is exclusive of bottom right. // POLYGON_EXCL Fill is exclusive of bottom right.
// This is provided to aid migration from other graphics models. // This is provided to aid migration from other graphics models.
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
LONG lHits = 0L; // Correlation/error indicator. LONG lHits = 0L; // Correlation/error indicator.
POINTL vPoint;
int i; int i;
int nIsTRANSPARENT = 0; int nIsTRANSPARENT = 0;
LONG lBorderColor = 0L; LONG lBorderColor = 0L;

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: os2/spinctrl.cpp // Name: src/os2/spinctrl.cpp
// Purpose: wxSpinCtrl class implementation for OS/2 // Purpose: wxSpinCtrl class implementation for OS/2
// Author: David Webster // Author: David Webster
// Modified by: // Modified by:
@@ -122,8 +122,6 @@ bool wxSpinCtrl::Create( wxWindow* pParent,
int nInitial, int nInitial,
const wxString& rsName ) const wxString& rsName )
{ {
SWP vSwp;
if (vId == wxID_ANY) if (vId == wxID_ANY)
m_windowId = NewControlId(); m_windowId = NewControlId();
else else
@@ -175,11 +173,7 @@ bool wxSpinCtrl::Create( wxWindow* pParent,
SetFont(*wxSMALL_FONT); SetFont(*wxSMALL_FONT);
SetXComp(0); SetXComp(0);
SetYComp(0); SetYComp(0);
SetSize( rPos.x SetSize( rPos.x, rPos.y, rSize.x, rSize.y );
,rPos.y
,rSize.x
,rSize.y
);
SetRange(nMin, nMax); SetRange(nMin, nMax);
SetValue(nInitial); SetValue(nInitial);