diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-10-19 17:53:09 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-10-19 17:53:09 +0000 |
| commit | 512332670a87377ba6b705232d22a67681fba3ff (patch) | |
| tree | 82b915d0cbcb2cefbe0fe7088dc6e5ad398e9306 /src/fl_show_colormap.cxx | |
| parent | 33ee986a7b69e05e1fe110c685747381bba481a9 (diff) | |
Added Gustavo's damage() update - now use symbolic constants for all values!
git-svn-id: file:///fltk/svn/fltk/trunk@18 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_show_colormap.cxx')
| -rw-r--r-- | src/fl_show_colormap.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_show_colormap.cxx b/src/fl_show_colormap.cxx index 5e3b18c88..52996a1fc 100644 --- a/src/fl_show_colormap.cxx +++ b/src/fl_show_colormap.cxx @@ -45,7 +45,7 @@ void ColorMenu::drawbox(Fl_Color c) { } void ColorMenu::draw() { - if (damage() != 1) { + 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); } else { @@ -87,7 +87,7 @@ int ColorMenu::handle(int e) { return 0; } if (c != which) { - which = (Fl_Color)c; damage(1); + which = (Fl_Color)c; damage(FL_DAMAGE_CHILD); int bx = (c%8)*BOXSIZE+BORDER; int by = (c/8)*BOXSIZE+BORDER; int px = x(); |
