From 0b784cc90f178a06b480309d0f1544d0e9bb37fa Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 4 Jul 2011 13:54:43 +0000 Subject: Arguments x_offset & y_offset of function Fl_Paged_Device::print_window() were partially ignored by the Mac version. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index b10390af6..3bf74c85a 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2897,7 +2897,7 @@ void Fl_X::set_cursor(Fl_Cursor c) printer.printable_rect(&w, &h); printer.origin(w/2, h/2 ); printer.rotate(20.); - printer.print_widget( win, - win->w()/2, - win->h()/2 ); + printer.print_window( win, - win->w()/2, - win->h()/2 ); #else printer.print_window(win); #endif @@ -3427,7 +3427,7 @@ void Fl_Paged_Device::print_window(Fl_Window *win, int x_offset, int y_offset) // capture the window title bar from screen CGImageRef img = Fl_X::CGImage_from_window_rect(win, 0, -bt, win->w(), bt); this->set_current(); // back to the Fl_Paged_Device - CGRect rect = { { 0, 0 }, { win->w(), bt } }; // print the title bar + CGRect rect = { { x_offset, y_offset }, { win->w(), bt } }; // print the title bar Fl_X::q_begin_image(rect, 0, 0, win->w(), bt); CGContextDrawImage(fl_gc, rect, img); Fl_X::q_end_image(); -- cgit v1.2.3