summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-06-10 18:13:16 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-06-10 18:13:16 +0000
commitff5e70f86538bfd5a08a0ebbb7bc484ae9b841e6 (patch)
tree89f99b6b09cfa5767e9e54888c9eb56b2731797d /riscos
parentbbd66fca97984030c7c16d673d8bde1283b35586 (diff)
downloadnetsurf-ff5e70f86538bfd5a08a0ebbb7bc484ae9b841e6.tar.gz
netsurf-ff5e70f86538bfd5a08a0ebbb7bc484ae9b841e6.tar.bz2
[project @ 2004-06-10 18:13:16 by rjw]
Fix for tiled background redraw. svn path=/import/netsurf/; revision=950
Diffstat (limited to 'riscos')
-rw-r--r--riscos/htmlredraw.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/riscos/htmlredraw.c b/riscos/htmlredraw.c
index 22f4bd77e..3e40aa6ac 100644
--- a/riscos/htmlredraw.c
+++ b/riscos/htmlredraw.c
@@ -608,16 +608,19 @@ void html_redraw_background(long xi, long yi, int width, int height,
tinct_options |= tinct_FILL_VERTICALLY;
break;
case CSS_BACKGROUND_REPEAT_NO_REPEAT:
- x = xi;
- if (fixed)
- /**\todo fixed background attachments */
- y = yi/*-height*/;
- else
- y = yi-height;
break;
default:
break;
}
+
+ /* handle window offset */
+ x = xi;
+ if (fixed) {
+ /**\todo fixed background attachments */
+ y = yi;
+ } else {
+ y = yi;
+ }
/* handle background-position */
switch (box->style->background_position.horz.pos) {