Fixed drawing sample compilo for wxMotif (doesn't have wxRegion::Offset)
Put m_ok earlier in SelectBitmap, else get assert after SelectObject(wxNullBitmap) 'Fixed' longlong to long conversion messages by redefinging GetMillisecondsTime git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -878,9 +878,10 @@ void MyCanvas::DrawRegionsHelper(wxDC& dc, wxCoord x, bool firstTime)
|
||||
dc.DestroyClippingRegion();
|
||||
|
||||
wxRegion region(x + 110, y + 20, 100, 270);
|
||||
#ifndef __WXMOTIF__
|
||||
if ( !firstTime )
|
||||
region.Offset(10, 10);
|
||||
|
||||
#endif
|
||||
dc.SetClippingRegion(region);
|
||||
|
||||
dc.SetBrush( *wxGREY_BRUSH );
|
||||
|
Reference in New Issue
Block a user