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:
@@ -554,9 +554,9 @@ void wxDC::Clear()
|
|||||||
if (!m_selectedBitmap.Ok())
|
if (!m_selectedBitmap.Ok())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
rect.left = 0; rect.top = 0;
|
rect.left = -m_deviceOriginX; rect.top = -m_deviceOriginY;
|
||||||
rect.right = m_selectedBitmap.GetWidth();
|
rect.right = m_selectedBitmap.GetWidth()-m_deviceOriginX;
|
||||||
rect.bottom = m_selectedBitmap.GetHeight();
|
rect.bottom = m_selectedBitmap.GetHeight()-m_deviceOriginY;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef __WXWINCE__
|
#ifndef __WXWINCE__
|
||||||
|
Reference in New Issue
Block a user