diff options
author | John Tytgat <joty@netsurf-browser.org> | 2004-08-14 15:07:21 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2004-08-14 15:07:21 +0000 |
commit | 7264ae50e52050243d9723c47c395975e00b5e50 (patch) | |
tree | 43210eba9464a839d5cc5d76b1d60bfc7aaba467 /riscos/htmlredraw.c | |
parent | 402c4ca66c7d95b1cdfc9eefbcb94947c807155b (diff) | |
download | netsurf-7264ae50e52050243d9723c47c395975e00b5e50.tar.gz netsurf-7264ae50e52050243d9723c47c395975e00b5e50.tar.bz2 |
[project @ 2004-08-14 15:07:19 by joty]
- Rename len() to css_len2px().
- Less compiler warnings concerning float/int implicit casts.
- More stddef.h type usuage.
svn path=/import/netsurf/; revision=1232
Diffstat (limited to 'riscos/htmlredraw.c')
-rw-r--r-- | riscos/htmlredraw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/riscos/htmlredraw.c b/riscos/htmlredraw.c index d9060563d..a3ecce1c6 100644 --- a/riscos/htmlredraw.c +++ b/riscos/htmlredraw.c @@ -954,7 +954,7 @@ bool html_redraw_background(int xi, int yi, int width, int height, x += ((state.visible.x1 - state.visible.x0) - (image_size.x * 2)) * multiplier; break; case CSS_BACKGROUND_POSITION_LENGTH: - x += 2 * len(&box->style->background_position.horz.value.length, box->style) * scale; + x += (int)(2. * css_len2px(&box->style->background_position.horz.value.length, box->style) * scale); break; default: break; @@ -966,7 +966,7 @@ bool html_redraw_background(int xi, int yi, int width, int height, y -= ((state.visible.y1 - state.visible.y0 - toolbar_height) - (image_size.y * 2)) * multiplier; break; case CSS_BACKGROUND_POSITION_LENGTH: - y -= 2 * len(&box->style->background_position.vert.value.length, box->style) * scale; + y -= (int)(2. * css_len2px(&box->style->background_position.vert.value.length, box->style) * scale); break; default: break; @@ -984,7 +984,7 @@ bool html_redraw_background(int xi, int yi, int width, int height, x += 2 * (box->width + box->padding[LEFT] + box->padding[RIGHT] - image_size.x) * multiplier; break; case CSS_BACKGROUND_POSITION_LENGTH: - x += 2 * len(&box->style->background_position.horz.value.length, box->style) * scale; + x += (int)(2. * css_len2px(&box->style->background_position.horz.value.length, box->style) * scale); break; default: break; @@ -996,7 +996,7 @@ bool html_redraw_background(int xi, int yi, int width, int height, y -= 2 * (box->height + box->padding[TOP] + box->padding[BOTTOM] - image_size.y) * multiplier; break; case CSS_BACKGROUND_POSITION_LENGTH: - y -= 2 * len(&box->style->background_position.vert.value.length, box->style) * scale; + y -= (int)(2. * css_len2px(&box->style->background_position.vert.value.length, box->style) * scale); break; default: break; |