summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/offscreen.cxx4
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())