summaryrefslogtreecommitdiff
path: root/src/Fl_Progress.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2008-12-06 14:59:52 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2008-12-06 14:59:52 +0000
commitfbea5019fb1a778c89ab60ae98272fcdca528f50 (patch)
tree17668fa0f0fafad59c3f9ea79cdb27fcec86d268 /src/Fl_Progress.cxx
parente907ce4a11e1258760eea39f4c81cce1d197d9fc (diff)
Replaced all occurrences of the deprecated fl_clip() function by
fl_push_clip(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Progress.cxx')
-rw-r--r--src/Fl_Progress.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Progress.cxx b/src/Fl_Progress.cxx
index c80d091c2..e63db214f 100644
--- a/src/Fl_Progress.cxx
+++ b/src/Fl_Progress.cxx
@@ -78,7 +78,7 @@ void Fl_Progress::draw()
Fl_Color c = labelcolor();
labelcolor(fl_contrast(labelcolor(), color2()));
- fl_clip(x(), y(), progress + bx, h());
+ fl_push_clip(x(), y(), progress + bx, h());
draw_box(box(), x(), y(), w(), h(), active_r() ? color2() : fl_inactive(color2()));
draw_label(tx, y() + by, tw, h() - bh);
fl_pop_clip();
@@ -86,7 +86,7 @@ void Fl_Progress::draw()
labelcolor(c);
if (progress<w()) {
- fl_clip(tx + progress, y(), w() - progress, h());
+ fl_push_clip(tx + progress, y(), w() - progress, h());
draw_box(box(), x(), y(), w(), h(), active_r() ? color() : fl_inactive(color()));
draw_label(tx, y() + by, tw, h() - bh);
fl_pop_clip();