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/GDI | |
| parent | b985b884f88d8b9c9b000dbfd564a220ceb7b7ed (diff) | |
Define useful implementations of Fl_Graphics_Driver::push_no_clip() and pop_clip().
Diffstat (limited to 'src/drivers/GDI')
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver.H | 2 | ||||
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx | 16 |
2 files changed, 0 insertions, 18 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.H b/src/drivers/GDI/Fl_GDI_Graphics_Driver.H index fdc646984..626049aeb 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.H +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.H @@ -115,8 +115,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(); virtual Fl_Region scale_clip(float f); // --- implementation is in src/fl_vertex.cxx which includes src/cfg_gfx/xxx_rect.cxx diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx index 51cd6713c..3e5d6bfb9 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx @@ -230,22 +230,6 @@ int Fl_GDI_Graphics_Driver::not_clipped(int x, int y, int w, int h) { return RectInRegion(r,&rect); } -// make there be no clip (used by fl_begin_offscreen() only!) -void Fl_GDI_Graphics_Driver::push_no_clip() { - if (rstackptr < region_stack_max) rstack[++rstackptr] = 0; - else Fl::warning("Fl_GDI_Graphics_Driver::push_no_clip: clip stack overflow!\n"); - fl_restore_clip(); -} - -// pop back to previous clip: -void Fl_GDI_Graphics_Driver::pop_clip() { - if (rstackptr > 0) { - Fl_Region oldr = rstack[rstackptr--]; - if (oldr) XDestroyRegion(oldr); - } else Fl::warning("Fl_GDI_Graphics_Driver::pop_clip: clip stack underflow!\n"); - fl_restore_clip(); -} - void Fl_GDI_Graphics_Driver::restore_clip() { fl_clip_state_number++; if (gc_) { |
