Author: manolo
Date: 2011-10-28 13:55:17 -0700 (Fri, 28 Oct 2011)
New Revision: 9156
Log:
Fixed use of "landscape" orientation with PostScript printing/output.
Modified:
branches/branch-1.3/src/Fl_PostScript.cxx
Modified: branches/branch-1.3/src/Fl_PostScript.cxx
===================================================================
--- branches/branch-1.3/src/Fl_PostScript.cxx 2011-10-27 19:48:19 UTC (rev
9155)
+++ branches/branch-1.3/src/Fl_PostScript.cxx 2011-10-28 20:55:17 UTC (rev
9156)
@@ -631,7 +631,7 @@
}
++nPages;
fprintf(output, "%%%%Page: %i %i\n" , nPages , nPages);
- fprintf(output, "%%%%PageBoundingBox: 0 0 %d %d\n", (int)pw, (int)ph);
+ fprintf(output, "%%%%PageBoundingBox: 0 0 %d %d\n", pw > ph ? (int)ph :
(int)pw , pw > ph ? (int)pw : (int)ph);
if (pw>ph){
fprintf(output, "%%%%PageOrientation: Landscape\n");
}else{
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit