summaryrefslogtreecommitdiff
path: root/src/Fl_Tabs.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Tabs.cxx')
-rw-r--r--src/Fl_Tabs.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx
index 886524875..fac59eef7 100644
--- a/src/Fl_Tabs.cxx
+++ b/src/Fl_Tabs.cxx
@@ -345,8 +345,8 @@ void Fl_Tabs::draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int what) {
if ((x2 < x1+W) && what == RIGHT) x1 = x2 - W;
if (H >= 0) {
- if (sel) fl_clip(x1, y(), x2 - x1, H + dh - dy);
- else fl_clip(x1, y(), x2 - x1, H);
+ if (sel) fl_push_clip(x1, y(), x2 - x1, H + dh - dy);
+ else fl_push_clip(x1, y(), x2 - x1, H);
H += dh;
@@ -371,8 +371,8 @@ void Fl_Tabs::draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int what) {
} else {
H = -H;
- if (sel) fl_clip(x1, y() + h() - H - dy, x2 - x1, H + dy);
- else fl_clip(x1, y() + h() - H, x2 - x1, H);
+ if (sel) fl_push_clip(x1, y() + h() - H - dy, x2 - x1, H + dy);
+ else fl_push_clip(x1, y() + h() - H, x2 - x1, H);
H += dh;