From 2a8e8a5cf10a22d47dd7ba8701b2b97b317c26ff Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 10 Feb 2011 22:35:41 +0000 Subject: 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 --- content/content.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'content') 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); } -- cgit v1.2.3