diff -Naur --strip-trailing-cr plplot/drivers/ps.c plplot-new/drivers/ps.c
--- plplot/drivers/ps.c	2008-12-04 10:46:20.670892000 +0000
+++ plplot-new/drivers/ps.c	2008-12-10 03:37:29.527167800 +0000
@@ -155,7 +155,9 @@
 ps_init(PLStream *pls)
 {
     PSDev *dev;
-
+    PLFLT pxlx;
+    PLFLT pxly;
+
     /* Set default values - 7.5 x 10 [inches] (72 points = 1 inch) */
     if (pls->xlength <= 0 || pls->ylength <=0) {
       pls->xlength = 540;
@@ -164,8 +166,10 @@
     if (pls->xdpi <= 0) pls->xdpi = 72.;
     if (pls->ydpi <= 0) pls->ydpi = 72.;
 
-    PLFLT pxlx = YPSSIZE/LPAGE_X;
-    PLFLT pxly = XPSSIZE/LPAGE_Y;
+    /* note the following macros YPSSIZE and XPSSIZE are dependent on
+	   pls->xdpi and pls->ydpi */
+    pxlx = YPSSIZE/LPAGE_X;
+    pxly = XPSSIZE/LPAGE_Y;
 
     if (text) 
      {
