Applied second part of patch #1570448, use the device origin for where

to clear


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-10-06 00:31:18 +00:00
parent 050441c841
commit dbe6f5f00b

View File

@@ -554,9 +554,9 @@ void wxDC::Clear()
if (!m_selectedBitmap.Ok())
return;
rect.left = 0; rect.top = 0;
rect.right = m_selectedBitmap.GetWidth();
rect.bottom = m_selectedBitmap.GetHeight();
rect.left = -m_deviceOriginX; rect.top = -m_deviceOriginY;
rect.right = m_selectedBitmap.GetWidth()-m_deviceOriginX;
rect.bottom = m_selectedBitmap.GetHeight()-m_deviceOriginY;
}
#ifndef __WXWINCE__