summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/offscreen.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/offscreen.cxx b/test/offscreen.cxx
index e6780f640..23cd368a6 100644
--- a/test/offscreen.cxx
+++ b/test/offscreen.cxx
@@ -99,7 +99,7 @@ void oscr_box::draw()
{
if (scale != Fl_Graphics_Driver::default_driver().scale()) {
// the screen scaling factor has changed
- fl_scale_offscreen(oscr);
+ fl_rescale_offscreen(oscr);
scale = Fl_Graphics_Driver::default_driver().scale();
}
fl_copy_offscreen(xo, yo, wd, ht, oscr, page_x, page_y);