From a22d737782e9b36acb6f400db669845cf73cc478 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Thu, 11 Apr 2002 21:56:30 +0000 Subject: [PATCH 1/1] Made metal theme a little faster. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/themes/metal.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/univ/themes/metal.cpp b/src/univ/themes/metal.cpp index f3de5bd69f..56f4bdd92b 100644 --- a/src/univ/themes/metal.cpp +++ b/src/univ/themes/metal.cpp @@ -3211,20 +3211,20 @@ void wxMetalRenderer::DoDrawBackground(wxDC& dc, const wxColour& col, const wxRect& rect) { + dc.SetPen(*wxTRANSPARENT_PEN); if (col == wxTheme::Get()->GetColourScheme()->Get( wxColourScheme::CONTROL )) { for (int y = rect.y; y < rect.height+rect.y; y++) { int intens = 230 + 80 * (rect.y-y) / rect.height; - dc.SetPen( wxPen( wxColour(intens,intens,intens), 1, wxSOLID ) ); - dc.DrawLine( rect.x, y, rect.x+rect.width, y ); + dc.SetBrush( wxBrush( wxColour(intens,intens,intens), wxSOLID ) ); + dc.DrawRectangle( rect.x, y, rect.width, 1 ); } } else { wxBrush brush(col, wxSOLID); dc.SetBrush(brush); - dc.SetPen(*wxTRANSPARENT_PEN); dc.DrawRectangle(rect); } } -- 2.45.2