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
This commit is contained in:
parent
682a8fc062
commit
0b784cc90f
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user