X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/370eda07c101d665fa9676f0c9e0cf450c1e3124..f239a20092359e3c914adb79bd39f3f5d2b2e06f:/src/ribbon/art_internal.cpp diff --git a/src/ribbon/art_internal.cpp b/src/ribbon/art_internal.cpp index 7f90889eb6..b74d33e3a5 100644 --- a/src/ribbon/art_internal.cpp +++ b/src/ribbon/art_internal.cpp @@ -15,17 +15,16 @@ #pragma hdrstop #endif -#include "wx/dc.h" -#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__ @@ -154,7 +153,7 @@ wxRibbonHSLColour::wxRibbonHSLColour(const wxColour& col) hue += 120.0; } else // Max == blue - { + { hue = 60.0 * (red - green) / (Max - Min); hue += 240.0; }