Author: manolo
Date: 2010-03-01 10:12:35 -0800 (Mon, 01 Mar 2010)
New Revision: 7185
Log:
Fixed Win32 bug when printing the tabs demo with the "Print" tab selected.
Modified:
branches/branch-1.3-Fl_Printer/FL/Fl_Printer.H
branches/branch-1.3-Fl_Printer/src/Fl_Device.cxx
branches/branch-1.3-Fl_Printer/src/Fl_GDI_Printer.cxx
Modified: branches/branch-1.3-Fl_Printer/FL/Fl_Printer.H
===================================================================
--- branches/branch-1.3-Fl_Printer/FL/Fl_Printer.H 2010-03-01 13:00:55 UTC
(rev 7184)
+++ branches/branch-1.3-Fl_Printer/FL/Fl_Printer.H 2010-03-01 18:12:35 UTC
(rev 7185)
@@ -39,7 +39,8 @@
/**
@brief Translates the current graphics origin accounting for the current
rotation.
*
- This function is only useful after a rotate() call. Each translate() call
must be matched by an untranslate() call.
+ This function is only useful after a rotate() call.
+ On Mac and X11, each translate() call must be matched by an untranslate()
call.
*/
virtual void translate(int x, int y);
Modified: branches/branch-1.3-Fl_Printer/src/Fl_Device.cxx
===================================================================
--- branches/branch-1.3-Fl_Printer/src/Fl_Device.cxx 2010-03-01 13:00:55 UTC
(rev 7184)
+++ branches/branch-1.3-Fl_Printer/src/Fl_Device.cxx 2010-03-01 18:12:35 UTC
(rev 7185)
@@ -44,7 +44,11 @@
traverse(widget);
// reset origin to where it was
if(new_x != old_x || new_y != old_y) {
+#ifdef WIN32
+ translate( - (new_x - old_x), - (new_y - old_y) );
+#else
untranslate();
+#endif
}
}
Modified: branches/branch-1.3-Fl_Printer/src/Fl_GDI_Printer.cxx
===================================================================
--- branches/branch-1.3-Fl_Printer/src/Fl_GDI_Printer.cxx 2010-03-01
13:00:55 UTC (rev 7184)
+++ branches/branch-1.3-Fl_Printer/src/Fl_GDI_Printer.cxx 2010-03-01
18:12:35 UTC (rev 7185)
@@ -225,11 +225,12 @@
void Fl_GDI_Printer::untranslate (void)
{
+/* unused now
XFORM mat;
GetWorldTransform(fl_gc, &mat);
mat.eDx = 0;
mat.eDy = 0;
- SetWorldTransform(fl_gc, &mat);
+ SetWorldTransform(fl_gc, &mat); */
}
#endif // WIN32
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit