From f2c27b5090314b318823b36cf5a74cb263239968 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 18 May 2017 17:26:34 +0000 Subject: 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 --- test/offscreen.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/offscreen.cxx') 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()) -- cgit v1.2.3