#ifdef __VMS
#define XShapeQueryExtension XSHAPEQUERYEXTENSION
-#define XtDisplay XTDISPLAY
#endif
#include "wx/x11/privx.h"
#ifndef WX_PRECOMP
#include "wx/bitmap.h"
+ #include "wx/region.h"
#endif
#ifdef __VMS
#include <X11/extensions/shape.h>
#endif
- #include "wx/region.h"
#include "wx/dcmemory.h"
#endif
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();
- dc.SetClippingRegion(region);
+ dc.SetDeviceClippingRegion(region);
dc.SetBackground(*wxWHITE_BRUSH);
dc.Clear();
dc.SelectObject(wxNullBitmap);