summaryrefslogtreecommitdiff
path: root/riscos/htmlredraw.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-06-23 21:05:56 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-06-23 21:05:56 +0000
commitce0285328afa1b51433d050d7e581a4927ef520a (patch)
tree4ba2c821543eff50dd76e0116a6d875797d40cd2 /riscos/htmlredraw.c
parent05552edb21d010a16c2208f8d6c616e0857f65fb (diff)
downloadnetsurf-ce0285328afa1b51433d050d7e581a4927ef520a.tar.gz
netsurf-ce0285328afa1b51433d050d7e581a4927ef520a.tar.bz2
[project @ 2004-06-23 21:05:56 by rjw]
Improved background image positioning for non-tiled images. svn path=/import/netsurf/; revision=999
Diffstat (limited to 'riscos/htmlredraw.c')
-rw-r--r--riscos/htmlredraw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/riscos/htmlredraw.c b/riscos/htmlredraw.c
index c8758bc58..ca3997d43 100644
--- a/riscos/htmlredraw.c
+++ b/riscos/htmlredraw.c
@@ -677,7 +677,7 @@ void html_redraw_background(long xi, long yi, int width, int height,
case CONTENT_PNG:
_swix(Tinct_PlotScaledAlpha, _IN(2) | _IN(3) | _IN(4) | _IN(5) | _IN(6) | _IN(7),
((char*) box->background->data.png.sprite_area + box->background->data.png.sprite_area->first),
- x, y, image_width, image_height,
+ x, y - image_height, image_width, image_height,
tinct_options);
break;
#endif
@@ -685,7 +685,7 @@ void html_redraw_background(long xi, long yi, int width, int height,
case CONTENT_JPEG:
_swix(Tinct_PlotScaled, _IN(2) | _IN(3) | _IN(4) | _IN(5) | _IN(6) | _IN(7),
((char*) box->background->data.jpeg.sprite_area + box->background->data.jpeg.sprite_area->first),
- x, y, image_width, image_height,
+ x, y - image_height, image_width, image_height,
tinct_options);
break;
#endif
@@ -693,7 +693,7 @@ void html_redraw_background(long xi, long yi, int width, int height,
case CONTENT_GIF:
_swix(Tinct_PlotScaledAlpha, _IN(2) | _IN(3) | _IN(4) | _IN(5) | _IN(6) | _IN(7),
(char*) box->background->data.gif.gif->frame_image,
- x, y, image_width, image_height,
+ x, y - image_height, image_width, image_height,
tinct_options);
break;
#endif