git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54096
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
else
{
// wxRegion::ConvertToBitmap gives us the wrong Pixmap:
else
{
// wxRegion::ConvertToBitmap gives us the wrong Pixmap:
- // polichrome and with black and whire reversed
+ // polychrome and with black and white reversed
wxRect box = region.GetBox();
wxBitmap bmp(box.GetRight(), box.GetBottom(), 1);
wxMemoryDC dc;
dc.SelectObject(bmp);
dc.SetBackground(*wxBLACK_BRUSH);
dc.Clear();
wxRect box = region.GetBox();
wxBitmap bmp(box.GetRight(), box.GetBottom(), 1);
wxMemoryDC dc;
dc.SelectObject(bmp);
dc.SetBackground(*wxBLACK_BRUSH);
dc.Clear();
- dc.SetClippingRegion(region);
+ dc.SetDeviceClippingRegion(region);
dc.SetBackground(*wxWHITE_BRUSH);
dc.Clear();
dc.SelectObject(wxNullBitmap);
dc.SetBackground(*wxWHITE_BRUSH);
dc.Clear();
dc.SelectObject(wxNullBitmap);
if (m_clearRegion.IsEmpty()) return;
wxClientDC dc( (wxWindow*)this );
if (m_clearRegion.IsEmpty()) return;
wxClientDC dc( (wxWindow*)this );
- dc.SetClippingRegion( m_clearRegion );
+ dc.SetDeviceClippingRegion( m_clearRegion );
wxEraseEvent erase_event( GetId(), &dc );
erase_event.SetEventObject( this );
wxEraseEvent erase_event( GetId(), &dc );
erase_event.SetEventObject( this );