summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2004-08-14 12:57:02 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2004-08-14 12:57:02 +0000
commit7d3a242132eedadbcb96bead6dbed64729d11aaf (patch)
tree80df3d742a1707264ffd3c0a9fe69c067b867157 /render/layout.c
parent44c418dc7308b9eabec103f86c612e83cb71347e (diff)
downloadnetsurf-7d3a242132eedadbcb96bead6dbed64729d11aaf.tar.gz
netsurf-7d3a242132eedadbcb96bead6dbed64729d11aaf.tar.bz2
[project @ 2004-08-14 12:57:00 by joty]
Using more stddef.h types. svn path=/import/netsurf/; revision=1230
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/render/layout.c b/render/layout.c
index a4e688f42..5b08a11d5 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -749,7 +749,8 @@ bool layout_line(struct box *first, int width, int *y,
if (b->text) {
if (b->width == UNKNOWN_WIDTH)
- b->width = nsfont_width(b->font, b->text,
+ b->width = nsfont_width(b->font,
+ b->text,
b->length);
x += b->width + b->space ?
b->font->space_width : 0;
@@ -998,7 +999,8 @@ bool layout_line(struct box *first, int width, int *y,
} else {
/* fit as many words as possible */
assert(space != 0);
- space = nsfont_split(split_box->font, split_box->text,
+ space = nsfont_split(split_box->font,
+ split_box->text,
split_box->length,
x1 - x0 - x - space_before, &w)
- split_box->text;