From fa74c30d09d3b7a11b4a5346c5f705b3d53f7a93 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 23 Jan 2020 01:17:36 +0100 Subject: [PATCH] Remove commented out code using wxINVERT from wxListCtrl No real changes, just remove the old code using wxINVERT logical function which doesn't work with wxGTK3/wxMac anyhow and so is really not worth keeping. See #16890. --- src/generic/listctrl.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 63e8563c1f..97222ebbfb 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -1211,35 +1211,9 @@ void wxListHeaderWindow::OnInternalIdle() void wxListHeaderWindow::DrawCurrent() { -#if 1 - // m_owner->SetColumnWidth( m_column, m_currentX - m_minX ); m_sendSetColumnWidth = true; m_colToSend = m_column; m_widthToSend = m_currentX - m_minX; -#else - int x1 = m_currentX; - int y1 = 0; - m_owner->ClientToScreen( &x1, &y1 ); - - int x2 = m_currentX; - int y2 = 0; - m_owner->GetClientSize( NULL, &y2 ); - m_owner->ClientToScreen( &x2, &y2 ); - - wxScreenDC dc; - dc.SetLogicalFunction( wxINVERT ); - dc.SetPen( wxPen(*wxBLACK, 2) ); - dc.SetBrush( *wxTRANSPARENT_BRUSH ); - - AdjustDC(dc); - - dc.DrawLine( x1, y1, x2, y2 ); - - dc.SetLogicalFunction( wxCOPY ); - - dc.SetPen( wxNullPen ); - dc.SetBrush( wxNullBrush ); -#endif } void wxListHeaderWindow::OnMouse( wxMouseEvent &event )