Warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
21d6b09b10
commit
9de1027152
@ -848,47 +848,44 @@ void wxDC::DoDrawPoint(
|
||||
);
|
||||
} // end of wxDC::DoDrawPoint
|
||||
|
||||
void wxDC::DoDrawPolygon(
|
||||
int n
|
||||
, wxPoint vPoints[]
|
||||
, wxCoord vXoffset
|
||||
, wxCoord vYoffset
|
||||
, int nFillStyle
|
||||
)
|
||||
void wxDC::DoDrawPolygon( int n,
|
||||
wxPoint vPoints[],
|
||||
wxCoord vXoffset,
|
||||
wxCoord vYoffset,
|
||||
int nFillStyle )
|
||||
{
|
||||
ULONG ulCount = 1; // Number of polygons.
|
||||
POLYGON vPlgn; // polygon.
|
||||
ULONG flOptions = 0L; // Drawing options.
|
||||
ULONG ulCount = 1; // Number of polygons.
|
||||
POLYGON vPlgn; // polygon.
|
||||
ULONG flOptions = 0L; // Drawing options.
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// This contains fields of option bits... to draw boundary lines as well as
|
||||
// the area interior.
|
||||
//
|
||||
// Drawing boundary lines:
|
||||
// POLYGON_NOBOUNDARY Does not draw boundary lines.
|
||||
// POLYGON_BOUNDARY Draws boundary lines (the default).
|
||||
//
|
||||
// Construction of the area interior:
|
||||
// POLYGON_ALTERNATE Constructs interior in alternate mode
|
||||
// (the default).
|
||||
// POLYGON_WINDING Constructs interior in winding mode.
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// This contains fields of option bits... to draw boundary lines as well as
|
||||
// the area interior.
|
||||
//
|
||||
// Drawing boundary lines:
|
||||
// POLYGON_NOBOUNDARY Does not draw boundary lines.
|
||||
// POLYGON_BOUNDARY Draws boundary lines (the default).
|
||||
//
|
||||
// Construction of the area interior:
|
||||
// POLYGON_ALTERNATE Constructs interior in alternate mode
|
||||
// (the default).
|
||||
// POLYGON_WINDING Constructs interior in winding mode.
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
ULONG flModel = POLYGON_INCL; // Drawing model.
|
||||
ULONG flModel = POLYGON_INCL; // Drawing model.
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// Drawing model.
|
||||
// POLYGON_INCL Fill is inclusive of bottom right (the default).
|
||||
// POLYGON_EXCL Fill is exclusive of bottom right.
|
||||
// This is provided to aid migration from other graphics models.
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// Drawing model.
|
||||
// POLYGON_INCL Fill is inclusive of bottom right (the default).
|
||||
// POLYGON_EXCL Fill is exclusive of bottom right.
|
||||
// This is provided to aid migration from other graphics models.
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
LONG lHits = 0L; // Correlation/error indicator.
|
||||
POINTL vPoint;
|
||||
int i;
|
||||
int nIsTRANSPARENT = 0;
|
||||
LONG lBorderColor = 0L;
|
||||
LONG lColor = 0L;
|
||||
LONG lHits = 0L; // Correlation/error indicator.
|
||||
int i;
|
||||
int nIsTRANSPARENT = 0;
|
||||
LONG lBorderColor = 0L;
|
||||
LONG lColor = 0L;
|
||||
|
||||
lBorderColor = m_pen.GetColour().GetPixel();
|
||||
lColor = m_brush.GetColour().GetPixel();
|
||||
@ -1751,7 +1748,7 @@ void wxDC::DrawAnyText( const wxString& rsText,
|
||||
{
|
||||
m_vRclPaint.yTop = m_vSelectedBitmap.GetHeight();
|
||||
m_vRclPaint.xRight = m_vSelectedBitmap.GetWidth();
|
||||
vPtlStart.y = OS2Y(vY,vTextY);
|
||||
vPtlStart.y = OS2Y(vY,vTextY);
|
||||
}
|
||||
else
|
||||
vPtlStart.y = vY;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: os2/spinctrl.cpp
|
||||
// Name: src/os2/spinctrl.cpp
|
||||
// Purpose: wxSpinCtrl class implementation for OS/2
|
||||
// Author: David Webster
|
||||
// Modified by:
|
||||
@ -122,8 +122,6 @@ bool wxSpinCtrl::Create( wxWindow* pParent,
|
||||
int nInitial,
|
||||
const wxString& rsName )
|
||||
{
|
||||
SWP vSwp;
|
||||
|
||||
if (vId == wxID_ANY)
|
||||
m_windowId = NewControlId();
|
||||
else
|
||||
@ -134,7 +132,7 @@ bool wxSpinCtrl::Create( wxWindow* pParent,
|
||||
SetParent(pParent);
|
||||
m_windowStyle = lStyle;
|
||||
|
||||
int lSstyle = 0L;
|
||||
int lSstyle = 0L;
|
||||
|
||||
lSstyle = WS_VISIBLE |
|
||||
WS_TABSTOP |
|
||||
@ -175,11 +173,7 @@ bool wxSpinCtrl::Create( wxWindow* pParent,
|
||||
SetFont(*wxSMALL_FONT);
|
||||
SetXComp(0);
|
||||
SetYComp(0);
|
||||
SetSize( rPos.x
|
||||
,rPos.y
|
||||
,rSize.x
|
||||
,rSize.y
|
||||
);
|
||||
SetSize( rPos.x, rPos.y, rSize.x, rSize.y );
|
||||
|
||||
SetRange(nMin, nMax);
|
||||
SetValue(nInitial);
|
||||
|
Loading…
Reference in New Issue
Block a user