Author: manolo
Date: 2011-07-04 06:54:43 -0700 (Mon, 04 Jul 2011)
New Revision: 8845
Log:
Arguments x_offset & y_offset of function Fl_Paged_Device::print_window() were 
partially 
ignored by the Mac version.

Modified:
   branches/branch-1.3/src/Fl_cocoa.mm

Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2011-07-04 12:01:10 UTC (rev 8844)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2011-07-04 13:54:43 UTC (rev 8845)
@@ -2897,7 +2897,7 @@
   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 @@
   // 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();

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to