unused parameters and float/double->int conversion warning fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -36,7 +36,7 @@ wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap )
|
|||||||
DoSelect(bitmap);
|
DoSelect(bitmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc )
|
wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxDC * WXUNUSED(dc) )
|
||||||
: wxPaintDCImpl( owner )
|
: wxPaintDCImpl( owner )
|
||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
|
@@ -97,9 +97,12 @@ wxRegion::wxRegion(const wxRect& rect)
|
|||||||
|
|
||||||
wxRegion::wxRegion(size_t n, const wxPoint *points, int WXUNUSED(fillStyle))
|
wxRegion::wxRegion(size_t n, const wxPoint *points, int WXUNUSED(fillStyle))
|
||||||
{
|
{
|
||||||
m_refData = new wxRegionRefData;
|
wxUnusedVar(n);
|
||||||
|
wxUnusedVar(points);
|
||||||
|
|
||||||
#if 0 // ndef __LP64__
|
#if 0 // ndef __LP64__
|
||||||
|
m_refData = new wxRegionRefData;
|
||||||
|
|
||||||
// TODO : any APIs ?
|
// TODO : any APIs ?
|
||||||
// OS X somehow does not collect the region invisibly as before, so sometimes things
|
// OS X somehow does not collect the region invisibly as before, so sometimes things
|
||||||
// get drawn on screen instead of just being combined into a region, therefore we allocate a temp gworld now
|
// get drawn on screen instead of just being combined into a region, therefore we allocate a temp gworld now
|
||||||
@@ -138,6 +141,9 @@ wxRegion::wxRegion(size_t n, const wxPoint *points, int WXUNUSED(fillStyle))
|
|||||||
|
|
||||||
::SetGWorld( oldWorld, oldGDHandle );
|
::SetGWorld( oldWorld, oldGDHandle );
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
wxFAIL_MSG( "not implemented" );
|
||||||
|
m_refData = NULL;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -238,10 +244,10 @@ bool wxRegion::DoGetBox(wxCoord& x, wxCoord& y, wxCoord& w, wxCoord& h) const
|
|||||||
{
|
{
|
||||||
CGRect box ;
|
CGRect box ;
|
||||||
HIShapeGetBounds( M_REGION , &box ) ;
|
HIShapeGetBounds( M_REGION , &box ) ;
|
||||||
x = box.origin.x ;
|
x = wx_static_cast(int, box.origin.x);
|
||||||
y = box.origin.y ;
|
y = wx_static_cast(int, box.origin.y);
|
||||||
w = box.size.width ;
|
w = wx_static_cast(int, box.size.width);
|
||||||
h = box.size.height ;
|
h = wx_static_cast(int, box.size.height);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@@ -1963,6 +1963,12 @@ CGColorRef wxMacCreateCGColorFromHITheme( ThemeBrush brush )
|
|||||||
|
|
||||||
#if wxMAC_USE_QUICKDRAW
|
#if wxMAC_USE_QUICKDRAW
|
||||||
|
|
||||||
|
static inline void PointFromHIPoint(const HIPoint& p, Point *pt)
|
||||||
|
{
|
||||||
|
pt->h = wx_static_cast(short, p.x);
|
||||||
|
pt->v = wx_static_cast(short, p.y);
|
||||||
|
}
|
||||||
|
|
||||||
void wxMacGlobalToLocal( WindowRef window , Point*pt )
|
void wxMacGlobalToLocal( WindowRef window , Point*pt )
|
||||||
{
|
{
|
||||||
HIPoint p = CGPointMake( pt->h, pt->v );
|
HIPoint p = CGPointMake( pt->h, pt->v );
|
||||||
@@ -1970,8 +1976,7 @@ void wxMacGlobalToLocal( WindowRef window , Point*pt )
|
|||||||
// TODO check toolbar offset
|
// TODO check toolbar offset
|
||||||
HIViewFindByID( HIViewGetRoot( window ), kHIViewWindowContentID , &contentView) ;
|
HIViewFindByID( HIViewGetRoot( window ), kHIViewWindowContentID , &contentView) ;
|
||||||
HIPointConvert( &p, kHICoordSpace72DPIGlobal, NULL, kHICoordSpaceView, contentView );
|
HIPointConvert( &p, kHICoordSpace72DPIGlobal, NULL, kHICoordSpaceView, contentView );
|
||||||
pt->h = p.x;
|
PointFromHIPoint(p, pt);
|
||||||
pt->v = p.y;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxMacLocalToGlobal( WindowRef window , Point*pt )
|
void wxMacLocalToGlobal( WindowRef window , Point*pt )
|
||||||
@@ -1981,10 +1986,10 @@ void wxMacLocalToGlobal( WindowRef window , Point*pt )
|
|||||||
// TODO check toolbar offset
|
// TODO check toolbar offset
|
||||||
HIViewFindByID( HIViewGetRoot( window ), kHIViewWindowContentID , &contentView) ;
|
HIViewFindByID( HIViewGetRoot( window ), kHIViewWindowContentID , &contentView) ;
|
||||||
HIPointConvert( &p, kHICoordSpaceView, contentView, kHICoordSpace72DPIGlobal, NULL );
|
HIPointConvert( &p, kHICoordSpaceView, contentView, kHICoordSpace72DPIGlobal, NULL );
|
||||||
pt->h = p.x;
|
PointFromHIPoint(p, pt);
|
||||||
pt->v = p.y;
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
#endif // wxMAC_USE_QUICKDRAW
|
||||||
|
|
||||||
#endif // wxUSE_GUI
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user