diff options
author | James Bursa <james@netsurf-browser.org> | 2003-08-30 21:45:03 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-08-30 21:45:03 +0000 |
commit | cdf0601420e087afd14aabca4b00224b59f0660a (patch) | |
tree | 6103c98ee4b2b4c3b701077e761a4a868d093646 /riscos | |
parent | a842b765fa72584629d98e40fa47645810bc1f20 (diff) | |
download | netsurf-cdf0601420e087afd14aabca4b00224b59f0660a.tar.gz netsurf-cdf0601420e087afd14aabca4b00224b59f0660a.tar.bz2 |
[project @ 2003-08-30 21:45:03 by bursa]
Make page background colour work properly.
svn path=/import/netsurf/; revision=263
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/gui.c | 19 |
1 files changed, 17 insertions, 2 deletions
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); } |