diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-11-20 19:49:10 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-11-26 18:22:22 +0200 |
commit | 140540ef59652cf7283afc06e2ea7922b1789c88 (patch) | |
tree | 0021ddee0ef7f53db04544b2b896725bdf906d83 /gtk2_ardour/ui_config.cc | |
parent | 6edd81e4f61aeae32b3310cf8e5ddc56887d5ba3 (diff) |
variable name change for slightly increased clarity
Diffstat (limited to 'gtk2_ardour/ui_config.cc')
-rw-r--r-- | gtk2_ardour/ui_config.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc index f7bfdeff16..059dc246ae 100644 --- a/gtk2_ardour/ui_config.cc +++ b/gtk2_ardour/ui_config.cc @@ -47,7 +47,7 @@ static const char* ui_config_file_name = "ui_config"; static const char* default_ui_config_file_name = "default_ui_config"; UIConfiguration* UIConfiguration::_instance = 0; -static const double hue_cnt = 18.0; +static const double hue_width = 18.0; UIConfiguration::UIConfiguration () : @@ -111,7 +111,7 @@ Color UIConfiguration::quantized (Color c) { HSV hsv (c); - hsv.h = hue_cnt * (round (hsv.h/hue_cnt)); + hsv.h = hue_width * (round (hsv.h/hue_width)); return hsv.color (); } @@ -170,7 +170,7 @@ UIConfiguration::print_relative_def (string camelcase, string name, Color c) * by original color choices */ - delta.h = hue_cnt * (round (delta.h/hue_cnt)); + delta.h = hue_width * (round (delta.h/hue_width)); cerr << "CANVAS_COLOR(" << camelcase << ",\"" << name << "\", \"" << closest_name << "\", HSV(" << delta.h << ',' << delta.s << ',' << delta.v << ',' << variable.a << ")) /*" @@ -652,9 +652,7 @@ UIConfiguration::regenerate_relative_definitions () c.insert (make_pair ("lock button: text active", HSV (0xc8c8d9ff))); for (map<string,HSV>::iterator fp = c.begin(); fp != c.end(); ++fp) { - const double hue_cnt = 18.0; - - fp->second.h = hue_cnt * (round (fp->second.h/hue_cnt)); + fp->second.h = hue_width * (round (fp->second.h/hue_width)); } #undef CANVAS_COLOR |