summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-07-18 17:07:50 +0000
committerJames Bursa <james@netsurf-browser.org>2003-07-18 17:07:50 +0000
commit14ae9f7db59f5ea65a16838fb35fa36a0ab5cb94 (patch)
treea584d13596ed9d24fdcabec50a1f19f5a037503f /riscos
parent5031b80b331ddc58fd24f3fe7a85503320cf9689 (diff)
downloadnetsurf-14ae9f7db59f5ea65a16838fb35fa36a0ab5cb94.tar.gz
netsurf-14ae9f7db59f5ea65a16838fb35fa36a0ab5cb94.tar.bz2
[project @ 2003-07-18 17:07:50 by bursa]
Fix image positioning. svn path=/import/netsurf/; revision=232
Diffstat (limited to 'riscos')
-rw-r--r--riscos/jpeg.c2
-rw-r--r--riscos/png.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/riscos/jpeg.c b/riscos/jpeg.c
index 816c4a2da..9a36b4593 100644
--- a/riscos/jpeg.c
+++ b/riscos/jpeg.c
@@ -79,7 +79,7 @@ void jpeg_redraw(struct content *c, long x, long y,
factors.ydiv = c->height * 2;
xjpeg_plot_scaled((jpeg_image *) c->data.jpeg.data,
- x, y - c->height * 2,
+ x, y - height,
&factors, (int) c->data.jpeg.length,
jpeg_SCALE_DITHERED);
}
diff --git a/riscos/png.c b/riscos/png.c
index 8903159aa..dd268ddf5 100644
--- a/riscos/png.c
+++ b/riscos/png.c
@@ -325,7 +325,7 @@ void nspng_redraw(struct content *c, long x, long y,
xosspriteop_put_sprite_scaled(osspriteop_PTR,
c->data.png.sprite_area,
(osspriteop_id) (c->data.png.sprite_area + 1),
- x, y - c->height * 2,
+ x, y - height,
os_ACTION_OVERWRITE, &factors, table);
xfree(table);