diff options
| author | Manolo Gouy <Manolo> | 2016-02-01 09:14:08 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-02-01 09:14:08 +0000 |
| commit | 2b36a14d10855ec88b975321791cf70fc6c7bc50 (patch) | |
| tree | f5b5eabfb7201812e1f2ff6aca228881ca09f551 /src | |
| parent | 6c5fa184336b433f5acf9b6809f4882c01ec6301 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
