From ff5e70f86538bfd5a08a0ebbb7bc484ae9b841e6 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Thu, 10 Jun 2004 18:13:16 +0000 Subject: [project @ 2004-06-10 18:13:16 by rjw] Fix for tiled background redraw. svn path=/import/netsurf/; revision=950 --- riscos/htmlredraw.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'riscos') 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) { -- cgit v1.2.3