// Author: Robin Dunn
// Modified by:
// Created: 27-Mar-2003
-// RCS-ID: $Id$
// Copyright: (c) Robin Dunn
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
// ----------------------------------------------------------------------------
-// region comparision
+// region comparison
// ----------------------------------------------------------------------------
bool wxRegionBase::IsEqual(const wxRegion& region) const
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);