[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: f_print.nw
User: werner
Date: 05/09/19 12:42:52
Modified: . f_print.nw
Log:
fixed colored background box in postscript output
Revision Changes Path
1.14 +6 -6 eda/geda/devel/libgeda/noweb/f_print.nw
(In the diff below, changes in quantity of whitespace are not shown.)
Index: f_print.nw
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/libgeda/noweb/f_print.nw,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- f_print.nw 20 Apr 2005 15:50:16 -0000 1.13
+++ f_print.nw 19 Sep 2005 16:42:51 -0000 1.14
@@ -271,13 +271,13 @@
fprintf(fp, "\n");
f_print_set_color(fp, w_current->print_color_background);
if (w_current->print_orientation == LANDSCAPE) {
- fprintf(fp, "0 0 moveto\n%d 0 rlineto 0 %d rlineto -%d 0 rlineto\n",
- paper_size_y*72/1000, paper_size_x*72/1000,
- paper_size_y*72/1000);
+ fprintf(fp, "0 0 moveto\n%f 0 rlineto 0 %f rlineto -%f 0 rlineto\n",
+ paper_size_y*72/1000.0, paper_size_x*72/1000.0,
+ paper_size_y*72/1000.0);
} else {
- fprintf(fp, "0 0 moveto\n%d 0 rlineto 0 %d rlineto -%d 0 rlineto\n",
- paper_size_x*72/1000, paper_size_y*72/1000,
- paper_size_x*72/1000);
+ fprintf(fp, "0 0 moveto\n%f 0 rlineto 0 %f rlineto -%f 0 rlineto\n",
+ paper_size_x*72/1000.0, paper_size_y*72/1000.0,
+ paper_size_x*72/1000.0);
}
fprintf(fp, "closepath fill\n");
}