summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-05-08 16:27:53 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-05-08 16:27:53 +0200
commit32439ec2596498e59b3dc3170f97ccc00927a7d0 (patch)
tree9629c075a9efdb8c49255d1705344edb4f09dfb1
parent12dedc26cdd98458204cc65e302caf2378c40bcb (diff)
Fix Fl_Cocoa_Window_Driver::capture_titlebar_and_borders() when GUI is scaled down
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 2 insertions, 0 deletions
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);