X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9553702e463d217eb90465d008ea0ed41d7a658b..cbb003b1053e30ea93a5cb956c360a4a39c35622:/src/generic/renderg.cpp diff --git a/src/generic/renderg.cpp b/src/generic/renderg.cpp index b5080a4d22..daba7bf33a 100644 --- a/src/generic/renderg.cpp +++ b/src/generic/renderg.cpp @@ -38,7 +38,7 @@ #include "wx/dcmirror.h" #ifdef __WXMAC__ - #include "wx/mac/private.h" + #include "wx/osx/private.h" #endif // ---------------------------------------------------------------------------- @@ -98,6 +98,8 @@ public: const wxRect& rect, int flags = 0); + virtual wxSize GetCheckBoxSize(wxWindow *win); + virtual void DrawPushButton(wxWindow *win, wxDC& dc, const wxRect& rect, @@ -333,7 +335,7 @@ wxRendererGeneric::DrawHeaderButtonContents(wxWindow *win, dc.SetFont(font); dc.SetTextForeground(clr); - dc.SetBackgroundMode(wxTRANSPARENT); + dc.SetBackgroundMode(wxBRUSHSTYLE_TRANSPARENT); int tw, th, td, x, y; dc.GetTextExtent( label, &tw, &th, &td); @@ -618,6 +620,11 @@ wxRendererGeneric::DrawCheckBox(wxWindow *WXUNUSED(win), } } +wxSize wxRendererGeneric::GetCheckBoxSize(wxWindow *WXUNUSED(win)) +{ + return wxSize(16, 16); +} + void wxRendererGeneric::DrawPushButton(wxWindow *win, wxDC& dc,