diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-02-10 22:35:41 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-02-10 22:35:41 +0000 |
commit | 2a8e8a5cf10a22d47dd7ba8701b2b97b317c26ff (patch) | |
tree | 5c71cd2bc7f87d2fafd5dc2c8a45019cff5e2004 /content/content.c | |
parent | bc2bce8d35bcb631168b3ae91ab6868b7057debc (diff) | |
download | netsurf-2a8e8a5cf10a22d47dd7ba8701b2b97b317c26ff.tar.gz netsurf-2a8e8a5cf10a22d47dd7ba8701b2b97b317c26ff.tar.bz2 |
add browser_window_redraw() method to make content_redraw calls from frontends common RISC OS, atari, amiga and beos have not been updated
svn path=/trunk/netsurf/; revision=11640
Diffstat (limited to 'content/content.c')
-rw-r--r-- | content/content.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/content/content.c b/content/content.c index 040679d7e..e314e2314 100644 --- a/content/content.c +++ b/content/content.c @@ -901,15 +901,19 @@ bool content_redraw(hlcache_handle *h, int x, int y, { struct content *c = hlcache_handle_get_content(h); assert(c != 0); -// LOG(("%p %s", c, c->url)); - if (c->locked) + + if (c->locked) { /* not safe to attempt redraw */ return true; - if (handler_map[c->type].redraw) - return handler_map[c->type].redraw(c, x, y, width, height, - clip_x0, clip_y0, clip_x1, clip_y1, scale, - background_colour); - return true; + } + + if (handler_map[c->type].redraw == NULL) { + return true; + } + + return handler_map[c->type].redraw(c, x, y, width, height, + clip_x0, clip_y0, clip_x1, clip_y1, scale, + background_colour); } |