Replace wxDeprecatedGUIConstants enum values
This commit is contained in:
@@ -199,7 +199,7 @@ void wxStdRenderer::DrawButtonSurface(wxDC& dc,
|
||||
void
|
||||
wxStdRenderer::DrawFocusRect(wxWindow* WXUNUSED(win), wxDC& dc, const wxRect& rect, int WXUNUSED(flags))
|
||||
{
|
||||
// draw the pixels manually because the "dots" in wxPen with wxDOT style
|
||||
// draw the pixels manually because the "dots" in wxPen with wxPENSTYLE_DOT style
|
||||
// may be short traits and not really dots
|
||||
//
|
||||
// note that to behave in the same manner as DrawRect(), we must exclude
|
||||
@@ -774,13 +774,13 @@ void wxStdRenderer::DrawTextLine(wxDC& dc,
|
||||
colBg = dc.GetTextBackground();
|
||||
dc.SetTextForeground(wxSCHEME_COLOUR(m_scheme, HIGHLIGHT_TEXT));
|
||||
dc.SetTextBackground(wxSCHEME_COLOUR(m_scheme, HIGHLIGHT));
|
||||
dc.SetBackgroundMode(wxSOLID);
|
||||
dc.SetBackgroundMode(wxBRUSHSTYLE_SOLID);
|
||||
|
||||
dc.DrawText(s, x, rect.y);
|
||||
dc.GetTextExtent(s, &width, NULL);
|
||||
x += width;
|
||||
|
||||
dc.SetBackgroundMode(wxTRANSPARENT);
|
||||
dc.SetBackgroundMode(wxBRUSHSTYLE_TRANSPARENT);
|
||||
dc.SetTextBackground(colBg);
|
||||
dc.SetTextForeground(colFg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user