Fixed use of "landscape" orientation with PostScript printing/output.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9156 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-10-28 20:55:17 +00:00
parent 8ff32e11d6
commit 1e88511efa

View File

@ -631,7 +631,7 @@ void Fl_PostScript_Graphics_Driver::page(double pw, double ph, int media) {
}
++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{