From 512332670a87377ba6b705232d22a67681fba3ff Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 19 Oct 1998 17:53:09 +0000 Subject: 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 --- src/Fl_Counter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_Counter.cxx') diff --git a/src/Fl_Counter.cxx b/src/Fl_Counter.cxx index 6064f99b6..66d1a8b35 100644 --- a/src/Fl_Counter.cxx +++ b/src/Fl_Counter.cxx @@ -39,7 +39,7 @@ void Fl_Counter::draw() { fl_color(active_r() ? textcolor() : inactive(textcolor())); char str[128]; format(str); fl_draw(str, xx[0], y(), ww[0], h(), FL_ALIGN_CENTER); - if (!(damage()&128)) return; // only need to redraw text + if (!(damage()&FL_DAMAGE_ALL)) return; // only need to redraw text if (type() == FL_NORMAL_COUNTER) { draw_box(boxtype[1], xx[1], y(), ww[1], h(), color()); -- cgit v1.2.3