X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cdccdfabb29bd51aded9aac141e1f7bbd6c85443..cdbce971ecd2a3f39ddcc56c0ef7769663fbdf23:/src/gtk/renderer.cpp diff --git a/src/gtk/renderer.cpp b/src/gtk/renderer.cpp index b2ac87afaf..7a7beefbd2 100644 --- a/src/gtk/renderer.cpp +++ b/src/gtk/renderer.cpp @@ -28,15 +28,13 @@ #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/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 @@ -206,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 ); } @@ -521,10 +519,6 @@ wxRendererGTK::DrawItemSelectionRect(wxWindow *win, 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) {