From 7bcfea7f27c13aaeece4152218bc39d34a2b4896 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 29 May 2020 11:39:29 +0200 Subject: [PATCH] Improve Fl_Copy_Surface under macOS --- src/Fl_Copy_Surface.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fl_Copy_Surface.cxx b/src/Fl_Copy_Surface.cxx index 909c5e73f..d710d64cf 100644 --- a/src/Fl_Copy_Surface.cxx +++ b/src/Fl_Copy_Surface.cxx @@ -218,7 +218,7 @@ void Fl_Copy_Surface::prepare_copy_pdf_and_tiff(int w, int h) if (gc == NULL) return; CGRect bounds = CGRectMake(0, 0, w, h ); CGContextBeginPage (gc, &bounds); - CGContextTranslateCTM(gc, 0, h); + CGContextTranslateCTM(gc, 0.5, h-0.5); CGContextScaleCTM(gc, 1.0f, -1.0f); CGContextSaveGState(gc); }