summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--riscos/draw.c16
1 files changed, 16 insertions, 0 deletions
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