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
This commit is contained in:
Manolo Gouy 2016-02-01 09:14:08 +00:00
parent 6c5fa18433
commit 2b36a14d10

View File

@ -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);