diff options
| author | ManoloFLTK <manolo> | 2018-12-04 15:11:03 +0100 |
|---|---|---|
| committer | ManoloFLTK <manolo> | 2018-12-04 15:11:03 +0100 |
| commit | d2870d6f7d378e374da515280e9434c605b1ac4e (patch) | |
| tree | bf7a5a45d5919088b695a99195c72ccdd3ef6f87 /src/drivers/Xlib/Fl_Xlib_Graphics_Driver_rect.cxx | |
| parent | b985b884f88d8b9c9b000dbfd564a220ceb7b7ed (diff) | |
Define useful implementations of Fl_Graphics_Driver::push_no_clip() and pop_clip().
Diffstat (limited to 'src/drivers/Xlib/Fl_Xlib_Graphics_Driver_rect.cxx')
| -rw-r--r-- | src/drivers/Xlib/Fl_Xlib_Graphics_Driver_rect.cxx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_rect.cxx b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_rect.cxx index 1af4320b6..af6b19c9a 100644 --- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_rect.cxx +++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_rect.cxx @@ -396,22 +396,6 @@ int Fl_Xlib_Graphics_Driver::not_clipped(int x, int y, int w, int h) { return XRectInRegion(r, x, y, w, h); } -// make there be no clip (used by fl_begin_offscreen() only!) -void Fl_Xlib_Graphics_Driver::push_no_clip() { - if (rstackptr < region_stack_max) rstack[++rstackptr] = 0; - else Fl::warning("Fl_Xlib_Graphics_Driver::push_no_clip: clip stack overflow!\n"); - restore_clip(); -} - -// pop back to previous clip: -void Fl_Xlib_Graphics_Driver::pop_clip() { - if (rstackptr > 0) { - Fl_Region oldr = rstack[rstackptr--]; - if (oldr) XDestroyRegion(oldr); - } else Fl::warning("Fl_Xlib_Graphics_Driver::pop_clip: clip stack underflow!\n"); - restore_clip(); -} - void Fl_Xlib_Graphics_Driver::restore_clip() { fl_clip_state_number++; if (gc_) { |
