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
This commit is contained in:
Manolo Gouy
2017-05-18 17:26:34 +00:00
parent f48750b0f4
commit f2c27b5090
3 changed files with 26 additions and 3 deletions
+1 -3
View File
@@ -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())