X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/156310e2e5eac9759abbe8113923bb19d8cbbafc..a66bf817a6ba833ad47cefc9fa8948ef8045a59d:/src/common/overlaycmn.cpp diff --git a/src/common/overlaycmn.cpp b/src/common/overlaycmn.cpp index 722cd5794f..f08cb238e5 100644 --- a/src/common/overlaycmn.cpp +++ b/src/common/overlaycmn.cpp @@ -139,7 +139,7 @@ wxOverlayImpl::~wxOverlayImpl() bool wxOverlayImpl::IsOk() { - return m_bmpSaved.Ok() ; + return m_bmpSaved.IsOk() ; } void wxOverlayImpl::Init( wxDC* dc, int x , int y , int width , int height ) @@ -152,11 +152,6 @@ void wxOverlayImpl::Init( wxDC* dc, int x , int y , int width , int height ) m_y = y ; m_width = width ; m_height = height ; -#if defined(__WXGTK__) && !defined(__WX_DC_BLIT_FIXED__) - wxPoint pt = dc->GetDeviceOrigin(); - x += pt.x; - y += pt.y; -#endif // broken wxGTK wxDC::Blit dcMem.Blit(0, 0, m_width, m_height, dc, x, y); dcMem.SelectObject( wxNullBitmap );