diff options
author | James Bursa <james@netsurf-browser.org> | 2002-12-26 23:02:38 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2002-12-26 23:02:38 +0000 |
commit | edf686bf9c0d3196db09ae9a62a442de0409941c (patch) | |
tree | baa85db1bdacc34dea56ec5dc6ec1265e4d03879 /render | |
parent | 4806941d497e81976c7b45f117a396a42912703a (diff) | |
download | netsurf-edf686bf9c0d3196db09ae9a62a442de0409941c.tar.gz netsurf-edf686bf9c0d3196db09ae9a62a442de0409941c.tar.bz2 |
[project @ 2002-12-26 23:02:38 by bursa]
Text layout changes for re-rendering.
svn path=/import/netsurf/; revision=58
Diffstat (limited to 'render')
-rw-r--r-- | render/layout.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/render/layout.c b/render/layout.c index fbbca36a4..d12c1f555 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1,5 +1,5 @@ /** - * $Id: layout.c,v 1.22 2002/12/23 22:31:28 bursa Exp $ + * $Id: layout.c,v 1.23 2002/12/26 23:02:38 bursa Exp $ */ #include <assert.h> @@ -382,11 +382,11 @@ struct box * layout_line(struct box * first, unsigned long width, unsigned long c2->length = c->length - ((space + 1) - c->text); c2->width = UNKNOWN_WIDTH; c->length = space + 1 - c->text; + c->width = wp + 4; /* should be the width of a space */ c2->next = c->next; c->next = c2; b = c2; } - c->width = wp; x = xp + wp; /* fprintf(stderr, "layout_line: overflow, forcing\n"); */ } else if (x1 - x0 < xp + w) { @@ -407,7 +407,7 @@ struct box * layout_line(struct box * first, unsigned long width, unsigned long c2->next = c->next; c->next = c2; b = c2; - c->width = wp; + c->width = wp + 4; /* should be the width of a space */ x = xp + wp; /* fprintf(stderr, "layout_line: overflow, fit\n"); */ } |