From 952682b9060867471670c26feee8415cff6173c0 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 11 Apr 2010 23:11:40 +0000 Subject: Implement draw_clone() svn path=/trunk/netsurf/; revision=10379 --- riscos/draw.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'riscos/draw.c') diff --git a/riscos/draw.c b/riscos/draw.c index 66f2c0c1d..29ee9abb0 100644 --- a/riscos/draw.c +++ b/riscos/draw.c @@ -147,4 +147,20 @@ bool draw_redraw(struct content *c, int x, int y, return true; } +/** + * Clone a CONTENT_DRAW + */ + +bool draw_clone(const struct content *old, struct content *new_content) +{ + /* Simply rerun convert */ + if (old->status == CONTENT_STATUS_READY || + old->status == CONTENT_STATUS_DONE) { + if (draw_convert(new_content) == false) + return false; + } + + return true; +} + #endif -- cgit v1.2.3