wxBitmap wxRegionBase::ConvertToBitmap() const
{
wxRect box = GetBox();
- wxBitmap bmp(box.GetRight(), box.GetBottom());
+ wxBitmap bmp(box.GetRight() + 1, box.GetBottom() + 1);
wxMemoryDC dc;
dc.SelectObject(bmp);
dc.SetBackground(*wxBLACK_BRUSH);
dc.Clear();
- dc.SetDeviceClippingRegion(*wx_static_cast(const wxRegion *, this));
+ dc.SetDeviceClippingRegion(*static_cast<const wxRegion *>(this));
dc.SetBackground(*wxWHITE_BRUSH);
dc.Clear();
dc.SelectObject(wxNullBitmap);
if (bmp.GetMask())
{
wxImage image = bmp.ConvertToImage();
- wxASSERT_MSG( image.HasMask(), _T("wxBitmap::ConvertToImage doesn't preserve mask?") );
+ wxASSERT_MSG( image.HasMask(), wxT("wxBitmap::ConvertToImage doesn't preserve mask?") );
return DoRegionUnion(*this, image,
image.GetMaskRed(),
image.GetMaskGreen(),