remove old hacks for gtk blit problem which was probably fixed long ago
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -152,11 +152,6 @@ void wxOverlayImpl::Init( wxDC* dc, int x , int y , int width , int height )
|
|||||||
m_y = y ;
|
m_y = y ;
|
||||||
m_width = width ;
|
m_width = width ;
|
||||||
m_height = height ;
|
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,
|
dcMem.Blit(0, 0, m_width, m_height,
|
||||||
dc, x, y);
|
dc, x, y);
|
||||||
dcMem.SelectObject( wxNullBitmap );
|
dcMem.SelectObject( wxNullBitmap );
|
||||||
|
@@ -243,16 +243,8 @@ void wxCaret::Refresh()
|
|||||||
if ( m_xOld == -1 && m_yOld == -1 )
|
if ( m_xOld == -1 && m_yOld == -1 )
|
||||||
{
|
{
|
||||||
// save the part we're going to overdraw
|
// save the part we're going to overdraw
|
||||||
|
|
||||||
int x = m_x,
|
|
||||||
y = m_y;
|
|
||||||
#if defined(__WXGTK__) && !defined(__WX_DC_BLIT_FIXED__)
|
|
||||||
wxPoint pt = dcWin.GetDeviceOrigin();
|
|
||||||
x += pt.x;
|
|
||||||
y += pt.y;
|
|
||||||
#endif // broken wxGTK wxDC::Blit
|
|
||||||
dcMem.Blit(0, 0, m_width, m_height,
|
dcMem.Blit(0, 0, m_width, m_height,
|
||||||
&dcWin, x, y);
|
&dcWin, m_x, m_y);
|
||||||
|
|
||||||
m_xOld = m_x;
|
m_xOld = m_x;
|
||||||
m_yOld = m_y;
|
m_yOld = m_y;
|
||||||
|
Reference in New Issue
Block a user