diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2004-05-09 16:12:24 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2004-05-09 16:12:24 +0000 |
commit | f29ad7e2662ff12d2c07c261c5c4e77ce0ac87c5 (patch) | |
tree | 82e798a6fb12fb91f0a9b318267620ab30ffe192 /riscos/window.c | |
parent | 29340cf8c8e2fe2f0fe8155e45940da29c37b79e (diff) | |
download | netsurf-f29ad7e2662ff12d2c07c261c5c4e77ce0ac87c5.tar.gz netsurf-f29ad7e2662ff12d2c07c261c5c4e77ce0ac87c5.tar.bz2 |
[project @ 2004-05-09 16:12:24 by rjw]
Improved GIF animation and a decoding bug fix.
svn path=/import/netsurf/; revision=845
Diffstat (limited to 'riscos/window.c')
-rw-r--r-- | riscos/window.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/riscos/window.c b/riscos/window.c index 261d81095..ea8942038 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -258,6 +258,8 @@ void gui_window_update_box(gui_window *g, const union content_msg_data *data) { struct content *c = g->data.browser.bw->current_content; osbool more; + osbool clear_background = false; + unsigned long background_colour = 0xffffff; os_error *error; wimp_draw update; @@ -273,8 +275,21 @@ void gui_window_update_box(gui_window *g, const union content_msg_data *data) return; } + /* We should clear the background for content that isn't HTML or plain text + */ + if ((c->type != CONTENT_HTML) && + (c->type != CONTENT_TEXTPLAIN)) { + clear_background = true; + } + while (more) { if (data->redraw.full_redraw) { + if (clear_background) { + colourtrans_set_gcol(background_colour << 8, + colourtrans_SET_BG | colourtrans_USE_ECFS, + os_ACTION_OVERWRITE, 0); + os_clg(); + } content_redraw(c, update.box.x0 - update.xscroll, update.box.y1 - update.yscroll, |