diff options
Diffstat (limited to 'src/fl_show_colormap.cxx')
| -rw-r--r-- | src/fl_show_colormap.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fl_show_colormap.cxx b/src/fl_show_colormap.cxx index c9a96f79b..4442bbce9 100644 --- a/src/fl_show_colormap.cxx +++ b/src/fl_show_colormap.cxx @@ -62,7 +62,8 @@ void ColorMenu::drawbox(Fl_Color c) { void ColorMenu::draw() { if (damage() != FL_DAMAGE_CHILD) { fl_draw_box(FL_UP_BOX,0,0,w(),h(),color()); - for (int c = 0; c < 256; c++) drawbox((Fl_Color)c); + int c; + for (c = 0; c < 256; c++) drawbox((Fl_Color)c); } else { drawbox(previous); drawbox(which); |
