From cdf0601420e087afd14aabca4b00224b59f0660a Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 30 Aug 2003 21:45:03 +0000 Subject: [project @ 2003-08-30 21:45:03 by bursa] Make page background colour work properly. svn path=/import/netsurf/; revision=263 --- riscos/gui.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'riscos') diff --git a/riscos/gui.c b/riscos/gui.c index cd7067a37..d79dbbfdc 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -326,9 +326,24 @@ void html_redraw(struct content *c, long x, long y, unsigned long width, unsigned long height) { bool select_on = false; + unsigned long background_colour = 0xffffff; + struct box *box; + assert(c->data.html.layout != NULL); - ro_gui_window_redraw_box(c, c->data.html.layout->children, - x, y, clip, 0xffffff, x, y, &select_on); + box = c->data.html.layout->children; + assert(box); + + /* clear to background colour */ + if (c->data.html.background_colour != TRANSPARENT) { + colourtrans_set_gcol(c->data.html.background_colour << 8, + colourtrans_SET_BG | colourtrans_USE_ECFS, + os_ACTION_OVERWRITE, 0); + os_clg(); + background_colour = c->data.html.background_colour; + } + + ro_gui_window_redraw_box(c, box, x, y, clip, background_colour, x, y, + &select_on); } -- cgit v1.2.3