X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c3ead1d1513a5eb79091a604f4e42b45d1bdf5d..6f026b5b63fe7ccb025e84509886f74772b9df13:/src/ribbon/art_internal.cpp diff --git a/src/ribbon/art_internal.cpp b/src/ribbon/art_internal.cpp index d96790adb7..de7c1d9fa3 100644 --- a/src/ribbon/art_internal.cpp +++ b/src/ribbon/art_internal.cpp @@ -4,7 +4,6 @@ // Author: Peter Cawley // Modified by: // Created: 2009-08-04 -// RCS-ID: $Id$ // Copyright: (C) Peter Cawley // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -15,16 +14,16 @@ #pragma hdrstop #endif -#include "wx/ribbon/art.h" - #if wxUSE_RIBBON +#include "wx/ribbon/art.h" #include "wx/ribbon/art_internal.h" #include "wx/ribbon/bar.h" #include "wx/ribbon/buttonbar.h" #include "wx/ribbon/gallery.h" #ifndef WX_PRECOMP +#include "wx/dc.h" #endif #ifdef __WXMSW__ @@ -153,7 +152,7 @@ wxRibbonHSLColour::wxRibbonHSLColour(const wxColour& col) hue += 120.0; } else // Max == blue - { + { hue = 60.0 * (red - green) / (Max - Min); hue += 240.0; }