summaryrefslogtreecommitdiff
path: root/riscos/htmlredraw.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 /riscos/htmlredraw.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 'riscos/htmlredraw.c')
-rw-r--r--riscos/htmlredraw.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/riscos/htmlredraw.c b/riscos/htmlredraw.c
index e037ac86e..d9060563d 100644
--- a/riscos/htmlredraw.c
+++ b/riscos/htmlredraw.c
@@ -530,13 +530,13 @@ bool html_redraw_box(struct box *box,
}
if (scale == 1)
- nsfont_paint(box->font, box->text,
+ nsfont_paint(box->font, box->text, box->length,
x, y - (int) (box->height * 1.5),
- NULL, (int) box->length);
+ NULL);
else
- nsfont_paint(box->font, box->text,
+ nsfont_paint(box->font, box->text, box->length,
x, y - (int) (box->height * 1.5 * scale),
- &trfm, (int) box->length);
+ &trfm);
} else {
@@ -832,7 +832,7 @@ bool html_redraw_file(int x, int y, int width, int height,
int text_width;
const char *text;
const char *sprite;
- int length;
+ size_t length;
if (box->gadget->value) {
text = box->gadget->value;
@@ -849,8 +849,7 @@ bool html_redraw_file(int x, int y, int width, int height,
else
x = x + 4;
- nsfont_paint(box->font, text,
- x, y - height * 0.75, &trfm, length);
+ nsfont_paint(box->font, text, length, x, y - height * 0.75, &trfm);
/* xwimpspriteop_put_sprite_user_coords(sprite, x + 4, */
/* y - height / 2 - 17, os_ACTION_OVERWRITE); */