From 2b36a14d10855ec88b975321791cf70fc6c7bc50 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 1 Feb 2016 09:14:08 +0000 Subject: Fix Mac OS "Print front window" of the application menu. This is part of r.10990 committed to the 1.3 branch, still to be replicated in this branch. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11105 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 46c7ac66a..c6d55206b 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -4417,7 +4417,7 @@ void Fl_Paged_Device::print_window(Fl_Window *win, int x_offset, int y_offset) if (layer) { // if title bar uses a layer if (to_quartz) { // to Quartz printer CGContextSaveGState(fl_gc); - CGContextTranslateCTM(fl_gc, 0, bt); + CGContextTranslateCTM(fl_gc, x_offset - 0.5, y_offset + bt - 0.5); CGContextScaleCTM(fl_gc, 1, -1); draw_layer_to_context(layer, fl_gc, win->w(), bt); CGContextRestoreGState(fl_gc); -- cgit v1.2.3