X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c6d8b7cdb8de22ff351939c55e733624d222ebf..16519fd473f79954ba503dfa74a5cc4544391846:/src/univ/themes/mono.cpp diff --git a/src/univ/themes/mono.cpp b/src/univ/themes/mono.cpp index 3c6ef714ba..93cf4b94f8 100644 --- a/src/univ/themes/mono.cpp +++ b/src/univ/themes/mono.cpp @@ -29,6 +29,7 @@ #if wxUSE_THEME_MONO #ifndef WX_PRECOMP + #include "wx/window.h" #include "wx/dc.h" #endif // WX_PRECOMP @@ -62,7 +63,7 @@ public: int indexAccel = -1, wxRect *rectBounds = NULL); - virtual void DrawFocusRect(wxDC& dc, const wxRect& rect, int flags = 0); + virtual void DrawFocusRect(wxWindow* win, wxDC& dc, const wxRect& rect, int flags = 0); virtual void DrawButtonBorder(wxDC& dc, const wxRect& rect, @@ -650,13 +651,14 @@ wxRect wxMonoRenderer::GetBorderDimensions(wxBorder border) const case wxBORDER_STATIC: case wxBORDER_RAISED: case wxBORDER_SUNKEN: + case wxBORDER_THEME: width = 1; break; - + /* case wxBORDER_DOUBLE: width = 2; break; - + */ default: wxFAIL_MSG(_T("unknown border type")); // fall through @@ -702,7 +704,7 @@ wxMonoRenderer::DrawVerticalLine(wxDC& dc, wxCoord x, wxCoord y1, wxCoord y2) dc.DrawLine(x, y1, x, y2 + 1); } -void wxMonoRenderer::DrawFocusRect(wxDC& dc, const wxRect& rect, int flags) +void wxMonoRenderer::DrawFocusRect(wxWindow* WXUNUSED(win), wxDC& dc, const wxRect& rect, int flags) { // no need to draw the focus rect for selected items, it would be invisible // anyhow