diff options
| author | Manolo Gouy <Manolo> | 2011-07-04 13:54:43 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-07-04 13:54:43 +0000 |
| commit | 0b784cc90f178a06b480309d0f1544d0e9bb37fa (patch) | |
| tree | 36a412861eb6cb6aba4653bffc47fe72620b7532 /src | |
| parent | 682a8fc062a049c159f00697051345dfa2557d86 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 4 |
1 files 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(); |
