diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2004-05-09 21:05:24 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2004-05-09 21:05:24 +0000 |
commit | e5863b17d091895b199240ff970eb663a7aaaa8d (patch) | |
tree | 6f3002b456143af08c75552b1140ff060bdccd72 /riscos/window.c | |
parent | 226c002d574e9e366ee9782675063c835b0d1a5c (diff) | |
download | netsurf-e5863b17d091895b199240ff970eb663a7aaaa8d.tar.gz netsurf-e5863b17d091895b199240ff970eb663a7aaaa8d.tar.bz2 |
[project @ 2004-05-09 21:05:24 by rjw]
Local options are now adhered to (dither, filter, animate).
svn path=/import/netsurf/; revision=847
Diffstat (limited to 'riscos/window.c')
-rw-r--r-- | riscos/window.c | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/riscos/window.c b/riscos/window.c index ea8942038..81732d381 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -35,6 +35,7 @@ #include "netsurf/utils/url.h" #include "netsurf/utils/utils.h" +gui_window *ro_gui_current_redraw_gui; gui_window *window_list = 0; static int window_count = 0; @@ -200,10 +201,16 @@ void gui_window_redraw_window(gui_window* g) void ro_gui_window_redraw(gui_window* g, wimp_draw* redraw) { osbool more; - osbool clear_background = false; + bool clear_background = false; struct content *c = g->data.browser.bw->current_content; unsigned long background_colour = 0xffffff; + /* Set the current redraw gui_window to get options from + */ + ro_gui_current_redraw_gui = g; + + /* Perform the update + */ if (g->type == GUI_BROWSER_WINDOW && c != NULL) { /* We should clear the background for GIFs and PNGs @@ -244,6 +251,11 @@ void ro_gui_window_redraw(gui_window* g, wimp_draw* redraw) { more = wimp_get_rectangle(redraw); } } + + /* Reset the current redraw gui_window to prevent thumbnails from + retaining options + */ + ro_gui_current_redraw_gui = NULL; } @@ -258,7 +270,7 @@ 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; + bool clear_background = false; unsigned long background_colour = 0xffffff; os_error *error; wimp_draw update; @@ -275,6 +287,10 @@ void gui_window_update_box(gui_window *g, const union content_msg_data *data) return; } + /* Set the current redraw gui_window to get options from + */ + ro_gui_current_redraw_gui = g; + /* We should clear the background for content that isn't HTML or plain text */ if ((c->type != CONTENT_HTML) && @@ -316,9 +332,14 @@ void gui_window_update_box(gui_window *g, const union content_msg_data *data) if (error) { LOG(("xwimp_get_rectangle: 0x%x: %s", error->errnum, error->errmess)); - return; +// return; } } + + /* Reset the current redraw gui_window to prevent thumbnails from + retaining options + */ + ro_gui_current_redraw_gui = NULL; } void gui_window_set_scroll(gui_window* g, unsigned long sx, unsigned long sy) |