X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/90b903c26306d88d3920589125ea1a03664e1b22..83b445a666eb7e7fb99d2966dd247b7d5e8b4362:/src/gtk/renderer.cpp?ds=sidebyside diff --git a/src/gtk/renderer.cpp b/src/gtk/renderer.cpp index b86627af63..7a7beefbd2 100644 --- a/src/gtk/renderer.cpp +++ b/src/gtk/renderer.cpp @@ -25,14 +25,16 @@ #endif #include "wx/renderer.h" + +#ifndef WX_PRECOMP + #include "wx/window.h" + #include "wx/dcclient.h" + #include "wx/settings.h" +#endif + #include #include "wx/gtk/win_gtk.h" -#include "wx/window.h" -#include "wx/dc.h" -#include "wx/dcclient.h" -#include "wx/settings.h" - // RR: After a correction to the orientation of the sash // this doesn't seem to be required anymore and it // seems to confuse some themes so USE_ERASE_RECT=0 @@ -202,7 +204,7 @@ wxRendererGTK::DrawHeaderButton(wxWindow *win, NULL, button, "button", - dc.XLOG2DEV(rect.x), rect.y, rect.width, rect.height + dc.LogicalToDeviceX(rect.x), rect.y, rect.width, rect.height ); } @@ -436,7 +438,7 @@ wxRendererGTK::DrawComboBoxDropButton(wxWindow *win, DrawDropArrow(win,dc,rect); } -void +void wxRendererGTK::DrawCheckBox(wxWindow *win, wxDC& dc, const wxRect& rect, @@ -468,8 +470,8 @@ wxRendererGTK::DrawCheckBox(wxWindow *win, NULL, button, "cellcheck", - dc.LogicalToDeviceX(rect.x)+2, - dc.LogicalToDeviceY(rect.y)+3, + dc.LogicalToDeviceX(rect.x)+2, + dc.LogicalToDeviceY(rect.y)+3, 13, 13 ); } @@ -511,16 +513,12 @@ wxRendererGTK::DrawPushButton(wxWindow *win, ); } -void +void wxRendererGTK::DrawItemSelectionRect(wxWindow *win, - wxDC& dc, - const wxRect& rect, - int flags ) + wxDC& dc, + const wxRect& rect, + int flags ) { - // for reason why we do this, see DrawDropArrow - wxWindowDC& wdc = (wxWindowDC&)dc; - wxASSERT ( wdc.IsKindOf(CLASSINFO(wxWindowDC)) ); - GtkStateType state; if (flags & wxCONTROL_SELECTED) { @@ -533,7 +531,7 @@ wxRendererGTK::DrawItemSelectionRect(wxWindow *win, GTK_PIZZA(win->m_wxwindow)->bin_window, state, GTK_SHADOW_NONE, - NULL, + NULL, win->m_wxwindow, "treeview", dc.LogicalToDeviceX(rect.x),