Author: manolo
Date: 2011-10-28 14:01:14 -0700 (Fri, 28 Oct 2011)
New Revision: 9157
Log:
Fixed use of "landscape" orientation with PostScript printing/output.
Modified:
branches/branch-3.0/src/fltk3/PostScript.cxx
Modified: branches/branch-3.0/src/fltk3/PostScript.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/PostScript.cxx 2011-10-28 20:55:17 UTC
(rev 9156)
+++ branches/branch-3.0/src/fltk3/PostScript.cxx 2011-10-28 21:01:14 UTC
(rev 9157)
@@ -640,7 +640,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