X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a290fa5a7deebe9d96c0c0089d18e27d4bd9b624..7890a36c9c34b5626ceada90956d0c69941a56af:/src/univ/themes/metal.cpp?ds=inline diff --git a/src/univ/themes/metal.cpp b/src/univ/themes/metal.cpp index a1e1e2d92b..0ea54fd699 100644 --- a/src/univ/themes/metal.cpp +++ b/src/univ/themes/metal.cpp @@ -163,7 +163,7 @@ private: private: wxTheme *m_win32Theme; wxMetalRenderer *m_renderer; - + WX_DECLARE_THEME(Metal) }; @@ -587,7 +587,7 @@ void wxMetalRenderer::DrawMetal(wxDC &dc, const wxRect &rect ) dc.SetPen(*wxTRANSPARENT_PEN); for (int y = rect.y; y < rect.height+rect.y; y++) { - int intens = 230 + 80 * (rect.y-y) / rect.height; + unsigned char intens = (unsigned char)(230 + 80 * (rect.y-y) / rect.height); dc.SetBrush( wxBrush( wxColour(intens,intens,intens), wxSOLID ) ); dc.DrawRectangle( rect.x, y, rect.width, 1 ); }