diff -cN gdevlips-2.4.0/gdevl4r.c.ORG gdevlips-2.4.0/gdevl4r.c
*** gdevlips-2.4.0/gdevl4r.c.ORG	Thu Nov  2 12:09:18 2000
--- gdevlips-2.4.0/gdevl4r.c	Fri Jun 27 19:13:28 2003
***************
*** 1065,1075 ****
  	if (paper_size == USER_SIZE) {
  	    fprintf(prn_stream, "%c2 I", LIPS_CSI);
  	    fprintf(prn_stream, "%c80;%d;%dp", LIPS_CSI,
! 		    width * 10, height * 10);
  	} else if (paper_size == USER_SIZE + LANDSCAPE) {
  	    fprintf(prn_stream, "%c2 I", LIPS_CSI);
  	    fprintf(prn_stream, "%c81;%d;%dp", LIPS_CSI,
! 		    height * 10, width * 10);
  	} else {
  	    fprintf(prn_stream, "%c%dp", LIPS_CSI, paper_size);
  	}
--- 1065,1075 ----
  	if (paper_size == USER_SIZE) {
  	    fprintf(prn_stream, "%c2 I", LIPS_CSI);
  	    fprintf(prn_stream, "%c80;%d;%dp", LIPS_CSI,
! 		    height * 10, width * 10);
  	} else if (paper_size == USER_SIZE + LANDSCAPE) {
  	    fprintf(prn_stream, "%c2 I", LIPS_CSI);
  	    fprintf(prn_stream, "%c81;%d;%dp", LIPS_CSI,
! 		    width * 10, height * 10);
  	} else {
  	    fprintf(prn_stream, "%c%dp", LIPS_CSI, paper_size);
  	}
***************
*** 1078,1091 ****
  	    prev_paper_height != height) {
  	    fprintf(prn_stream, "%c2 I", LIPS_CSI);
  	    fprintf(prn_stream, "%c80;%d;%dp", LIPS_CSI,
! 		    width * 10, height * 10);
  	}
      } else if (paper_size == USER_SIZE + LANDSCAPE) {
  	if (prev_paper_width != width ||
  	    prev_paper_height != height) {
  	    fprintf(prn_stream, "%c2 I", LIPS_CSI);
  	    fprintf(prn_stream, "%c81;%d;%dp", LIPS_CSI,
! 		    height * 10, width * 10);
  	}
      }
      /* desired number of copies */
--- 1078,1091 ----
  	    prev_paper_height != height) {
  	    fprintf(prn_stream, "%c2 I", LIPS_CSI);
  	    fprintf(prn_stream, "%c80;%d;%dp", LIPS_CSI,
! 		    height * 10, width * 10);
  	}
      } else if (paper_size == USER_SIZE + LANDSCAPE) {
  	if (prev_paper_width != width ||
  	    prev_paper_height != height) {
  	    fprintf(prn_stream, "%c2 I", LIPS_CSI);
  	    fprintf(prn_stream, "%c81;%d;%dp", LIPS_CSI,
! 		    width * 10, height * 10);
  	}
      }
      /* desired number of copies */
diff -cN gdevlips-2.4.0/gdevl4v.c.ORG gdevlips-2.4.0/gdevl4v.c
*** gdevlips-2.4.0/gdevl4v.c.ORG	Thu Nov  2 12:09:18 2000
--- gdevlips-2.4.0/gdevl4v.c	Fri Jun 27 19:14:56 2003
***************
*** 758,767 ****
      /* ÍÑ»æ¥µ¥¤¥º */
      if (pdev->prev_paper_size != paper_size) {
  	if (paper_size == USER_SIZE) {
! 	    sprintf(paper, "%c80;%d;%dp", LIPS_CSI, width * 10, height * 10);
  	    lputs(s, paper);
  	} else if (paper_size == USER_SIZE + LANDSCAPE) {
! 	    sprintf(paper, "%c81;%d;%dp", LIPS_CSI, height * 10, width * 10);
  	    lputs(s, paper);
  	} else {
  	    sprintf(paper, "%c%dp", LIPS_CSI, paper_size);
--- 758,767 ----
      /* ÍÑ»æ¥µ¥¤¥º */
      if (pdev->prev_paper_size != paper_size) {
  	if (paper_size == USER_SIZE) {
! 	    sprintf(paper, "%c80;%d;%dp", LIPS_CSI, height * 10, width * 10);
  	    lputs(s, paper);
  	} else if (paper_size == USER_SIZE + LANDSCAPE) {
! 	    sprintf(paper, "%c81;%d;%dp", LIPS_CSI, width * 10, height * 10);
  	    lputs(s, paper);
  	} else {
  	    sprintf(paper, "%c%dp", LIPS_CSI, paper_size);
***************
*** 770,781 ****
      } else if (paper_size == USER_SIZE) {
  	if (pdev->prev_paper_width != width ||
  	    pdev->prev_paper_height != height)
! 		sprintf(paper, "%c80;%d;%dp", LIPS_CSI, width * 10, height * 10);
  	lputs(s, paper);
      } else if (paper_size == USER_SIZE + LANDSCAPE) {
  	if (pdev->prev_paper_width != width ||
  	    pdev->prev_paper_height != height)
! 		sprintf(paper, "%c81;%d;%dp", LIPS_CSI, height * 10, width * 10);
  	lputs(s, paper);
      }
      pdev->prev_paper_size = paper_size;
--- 770,781 ----
      } else if (paper_size == USER_SIZE) {
  	if (pdev->prev_paper_width != width ||
  	    pdev->prev_paper_height != height)
! 		sprintf(paper, "%c80;%d;%dp", LIPS_CSI, height * 10, width * 10);
  	lputs(s, paper);
      } else if (paper_size == USER_SIZE + LANDSCAPE) {
  	if (pdev->prev_paper_width != width ||
  	    pdev->prev_paper_height != height)
! 		sprintf(paper, "%c81;%d;%dp", LIPS_CSI, width * 10, height * 10);
  	lputs(s, paper);
      }
      pdev->prev_paper_size = paper_size;
