diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-11-27 15:11:33 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-11-27 15:11:33 +0000 |
| commit | 5c613e487e180b085176dd507fc9005af74b592f (patch) | |
| tree | 0e2663d67bf384cb2a17991db9a5bfa2619405ac /src/Fl_Counter.cxx | |
| parent | f3182417c09c69dee7cd433f991e4b6da0de4650 (diff) | |
Fix uninitialized variable warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4662 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Counter.cxx')
| -rw-r--r-- | src/Fl_Counter.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_Counter.cxx b/src/Fl_Counter.cxx index 253ec8763..875171541 100644 --- a/src/Fl_Counter.cxx +++ b/src/Fl_Counter.cxx @@ -52,9 +52,11 @@ void Fl_Counter::draw() { xx[4] = x()+w()-1*W; ww[4] = W; } else { int W = w()*20/100; + xx[1] = 0; ww[1] = 0; xx[2] = x(); ww[2] = W; xx[0] = x()+W; ww[0] = w()-2*W; xx[3] = x()+w()-1*W; ww[3] = W; + xx[4] = 0; ww[4] = 0; } draw_box(boxtype[0], xx[0], y(), ww[0], h(), FL_BACKGROUND2_COLOR); |
