GTK+1 fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ac7ad70d4c
commit
0396d31b57
@ -45,7 +45,7 @@
|
|||||||
#include "wx/mac/private.h"
|
#include "wx/mac/private.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK20__
|
||||||
#include "wx/gtk/private.h"
|
#include "wx/gtk/private.h"
|
||||||
#include "wx/gtk/win_gtk.h"
|
#include "wx/gtk/win_gtk.h"
|
||||||
#endif
|
#endif
|
||||||
@ -2241,7 +2241,7 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
|
|||||||
x=0;
|
x=0;
|
||||||
GetVirtualSize(&w, &h);
|
GetVirtualSize(&w, &h);
|
||||||
wxRect rect( x, item->GetY()+offset, w, total_h-offset);
|
wxRect rect( x, item->GetY()+offset, w, total_h-offset);
|
||||||
#ifndef __WXGTK__
|
#ifndef __WXGTK20__
|
||||||
dc.DrawRectangle(rect);
|
dc.DrawRectangle(rect);
|
||||||
#else
|
#else
|
||||||
if (!item->IsSelected())
|
if (!item->IsSelected())
|
||||||
@ -2281,7 +2281,7 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
|
|||||||
// background colour.
|
// background colour.
|
||||||
wxRect rect( item->GetX() + image_w - 2, item->GetY()+offset,
|
wxRect rect( item->GetX() + image_w - 2, item->GetY()+offset,
|
||||||
item->GetWidth() - image_w + 2, total_h-offset );
|
item->GetWidth() - image_w + 2, total_h-offset );
|
||||||
#ifndef __WXGTK__
|
#ifndef __WXGTK20__
|
||||||
dc.DrawRectangle( rect );
|
dc.DrawRectangle( rect );
|
||||||
#else
|
#else
|
||||||
CalcScrolledPosition( rect.x, rect.y, &rect.x, &rect.y );
|
CalcScrolledPosition( rect.x, rect.y, &rect.x, &rect.y );
|
||||||
@ -2315,7 +2315,7 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
|
|||||||
{
|
{
|
||||||
wxRect rect( item->GetX()-2, item->GetY()+offset,
|
wxRect rect( item->GetX()-2, item->GetY()+offset,
|
||||||
item->GetWidth()+2, total_h-offset );
|
item->GetWidth()+2, total_h-offset );
|
||||||
#ifndef __WXGTK__
|
#ifndef __WXGTK20__
|
||||||
dc.DrawRectangle( rect );
|
dc.DrawRectangle( rect );
|
||||||
#else
|
#else
|
||||||
if ( attr && attr->HasBackgroundColour() )
|
if ( attr && attr->HasBackgroundColour() )
|
||||||
|
Loading…
Reference in New Issue
Block a user