diff options
| author | Manolo Gouy <Manolo> | 2017-05-18 17:26:34 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-05-18 17:26:34 +0000 |
| commit | f2c27b5090314b318823b36cf5a74cb263239968 (patch) | |
| tree | 2dea8d8b937f57ab22d94e14bd5e87f9867f8d78 /test/offscreen.cxx | |
| parent | f48750b0f482a2155ec5d66b19110d2ac22ce87c (diff) | |
Add void fl_scale_offscreen(Fl_Offscreen &ctx) to support the rescaling of an offscreen buffer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12240 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/offscreen.cxx')
| -rw-r--r-- | test/offscreen.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/offscreen.cxx b/test/offscreen.cxx index 91e0174ef..bcb140f49 100644 --- a/test/offscreen.cxx +++ b/test/offscreen.cxx @@ -114,9 +114,7 @@ int oscr_box::handle(int ev) int ret = Fl_Box::handle(ev); if (ev == FL_HIDE && oscr) { - fl_delete_offscreen(oscr); - oscr = 0; - iters = num_iterations + 1; + fl_scale_offscreen(oscr); } // handle dragging of visible page area - if a valid context exists if (has_oscr()) |
