From 8ee87d15e3c369d74752736a9c3e6614e2950cb0 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 24 Dec 2017 07:20:25 +0000 Subject: Continue support for GUI rescaling under MacOS: fix Fl_Cocoa_Window_Driver::capture_titlebar_and_borders() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12604 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 8cbf3aca9..380a984cc 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -4438,7 +4438,7 @@ void Fl_Cocoa_Window_Driver::capture_titlebar_and_borders(Fl_Shared_Image*& top, Fl_RGB_Image *top_rgb = new Fl_RGB_Image(rgba, 2 * scaled_w, 2 * htop, 4); top_rgb->alloc_array = 1; top = Fl_Shared_Image::get(top_rgb); - top->scale(w(),htop); + top->scale(w(),htop, s <1 ? 0 : 1, 1); CGContextRelease(auxgc); } -- cgit v1.2.3