From 32439ec2596498e59b3dc3170f97ccc00927a7d0 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 8 May 2019 16:27:53 +0200 Subject: Fix Fl_Cocoa_Window_Driver::capture_titlebar_and_borders() when GUI is scaled down --- src/Fl_cocoa.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 5cfd547de..2d624c17d 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -4432,7 +4432,9 @@ void Fl_Cocoa_Window_Driver::capture_titlebar_and_borders(Fl_RGB_Image*& top, Fl } } } else { + Fl_Graphics_Driver::default_driver().scale(1); CGImageRef img = CGImage_from_window_rect(0, -htop, scaled_w, htop, false); + Fl_Graphics_Driver::default_driver().scale(s); CGContextSaveGState(auxgc); clip_to_rounded_corners(auxgc, scaled_w, htop); CGContextDrawImage(auxgc, CGRectMake(0, 0, scaled_w, htop), img); -- cgit v1.2.3