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/Quartz | |
| parent | b985b884f88d8b9c9b000dbfd564a220ceb7b7ed (diff) | |
Define useful implementations of Fl_Graphics_Driver::push_no_clip() and pop_clip().
Diffstat (limited to 'src/drivers/Quartz')
| -rw-r--r-- | src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H | 2 | ||||
| -rw-r--r-- | src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx | 16 |
2 files changed, 0 insertions, 18 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H index 9b4a16fc6..80d0bd615 100644 --- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H +++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H @@ -113,8 +113,6 @@ protected: void push_clip(int x, int y, int w, int h); int clip_box(int x, int y, int w, int h, int &X, int &Y, int &W, int &H); int not_clipped(int x, int y, int w, int h); - void push_no_clip(); - void pop_clip(); void restore_clip(); // --- implementation is in src/fl_vertex.cxx which includes src/cfg_gfx/xxx_rect.cxx void begin_complex_polygon(); diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx index a30eeec09..e48cd0361 100644 --- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx +++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx @@ -284,22 +284,6 @@ int Fl_Quartz_Graphics_Driver::not_clipped(int x, int y, int w, int h) { return 0; } -// make there be no clip (used by fl_begin_offscreen() only!) -void Fl_Quartz_Graphics_Driver::push_no_clip() { - if (rstackptr < region_stack_max) rstack[++rstackptr] = 0; - else Fl::warning("Fl_Quartz_Graphics_Driver::push_no_clip: clip stack overflow!\n"); - restore_clip(); -} - -// pop back to previous clip: -void Fl_Quartz_Graphics_Driver::pop_clip() { - if (rstackptr > 0) { - Fl_Region oldr = rstack[rstackptr--]; - if (oldr) XDestroyRegion(oldr); - } else Fl::warning("Fl_Quartz_Graphics_Driver::pop_clip: clip stack underflow!\n"); - restore_clip(); -} - void Fl_Quartz_Graphics_Driver::restore_clip() { fl_clip_state_number++; Fl_Region r = rstack[rstackptr]; |
