diff --git a/src/main.c b/src/main.c index 136b293..0c5efbd 100644 --- a/src/main.c +++ b/src/main.c @@ -25,6 +25,8 @@ #include "gsint.h" #include "getopt.h" +#define __PORTRAIT_LONGCOL__ + /* * Prototypes for static functions. */ @@ -1353,6 +1355,10 @@ name width\theight\tllx\tlly\turx\tury\n\ nup_columns = 1; nup_landscape = nup_exp & 0x1; +#ifdef __PORTRAIT_LONGCOL__ + nup_landscape = !nup_landscape; +#endif +printf("LANDSAPE %d nup_rows %d nup_columns %d\n", landscape, nup_rows, nup_columns); /* @@ -1368,6 +1374,9 @@ name width\theight\tllx\tlly\turx\tury\n\ { d_page_w = media->urx - media->llx; d_page_h = media->ury - media->lly; +#ifdef __PORTRAIT_LONGCOL__ + d_page_h *= 2; +#endif } /*