aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-14 03:45:44 +0000
committerrsc <devnull@localhost>2005-01-14 03:45:44 +0000
commit78e51a8c6678b6e3dff3d619aa786669f531f4bc (patch)
tree015e00fde4fc837fd31b705e18d17dc913829388 /src/cmd/acme
parent2634795b5f0053bc0ff08e5d7bbc0eda8efea061 (diff)
downloadplan9port-78e51a8c6678b6e3dff3d619aa786669f531f4bc.tar.gz
plan9port-78e51a8c6678b6e3dff3d619aa786669f531f4bc.tar.bz2
plan9port-78e51a8c6678b6e3dff3d619aa786669f531f4bc.zip
checkpoint
Diffstat (limited to 'src/cmd/acme')
-rw-r--r--src/cmd/acme/rows.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/cmd/acme/rows.c b/src/cmd/acme/rows.c
index 15e02894..be580f1c 100644
--- a/src/cmd/acme/rows.c
+++ b/src/cmd/acme/rows.c
@@ -337,7 +337,7 @@ rowdump(Row *row, char *file)
Bprint(b, "%s\n", fontnames[1]);
for(i=0; i<row->ncol; i++){
c = row->col[i];
- Bprint(b, "%11d", 100*(c->r.min.x-row->r.min.x)/Dx(row->r));
+ Bprint(b, "%11.5f", 100.0*(c->r.min.x-row->r.min.x)/Dx(row->r));
if(i == row->ncol-1)
Bputc(b, '\n');
else
@@ -376,29 +376,29 @@ rowdump(Row *row, char *file)
a = emalloc(1);
if(t->file->dumpid){
dumped = FALSE;
- Bprint(b, "x%11d %11d %11d %11d %11d %s\n", i, t->file->dumpid,
+ Bprint(b, "x%11d %11d %11d %11d %11.5f %s\n", i, t->file->dumpid,
w->body.q0, w->body.q1,
- 100*(w->r.min.y-c->r.min.y)/Dy(c->r),
+ 100.0*(w->r.min.y-c->r.min.y)/Dy(c->r),
fontname);
}else if(w->dumpstr){
dumped = FALSE;
- Bprint(b, "e%11d %11d %11d %11d %11d %s\n", i, t->file->dumpid,
+ Bprint(b, "e%11d %11d %11d %11d %11.5f %s\n", i, t->file->dumpid,
0, 0,
- 100*(w->r.min.y-c->r.min.y)/Dy(c->r),
+ 100.0*(w->r.min.y-c->r.min.y)/Dy(c->r),
fontname);
}else if((w->dirty==FALSE && access(a, 0)==0) || w->isdir){
dumped = FALSE;
t->file->dumpid = w->id;
- Bprint(b, "f%11d %11d %11d %11d %11d %s\n", i, w->id,
+ Bprint(b, "f%11d %11d %11d %11d %11.5f %s\n", i, w->id,
w->body.q0, w->body.q1,
- 100*(w->r.min.y-c->r.min.y)/Dy(c->r),
+ 100.0*(w->r.min.y-c->r.min.y)/Dy(c->r),
fontname);
}else{
dumped = TRUE;
t->file->dumpid = w->id;
- Bprint(b, "F%11d %11d %11d %11d %11d %11d %s\n", i, j,
+ Bprint(b, "F%11d %11d %11d %11d %11d %11.5f %s\n", i, j,
w->body.q0, w->body.q1,
- 100*(w->r.min.y-c->r.min.y)/Dy(c->r),
+ 100.0*(w->r.min.y-c->r.min.y)/Dy(c->r),
w->body.file->b.nc, fontname);
}
free(a);