diff options
Diffstat (limited to 'image/ico.c')
-rw-r--r-- | image/ico.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/image/ico.c b/image/ico.c index 3335a6a58..190da86d2 100644 --- a/image/ico.c +++ b/image/ico.c @@ -169,4 +169,19 @@ void nsico_destroy(struct content *c) free(c->data.ico.ico); } +bool nsico_clone(const struct content *old, struct content *new_content) +{ + /* Simply replay creation and conversion */ + if (nsico_create(new_content, NULL) == false) + return false; + + if (old->status == CONTENT_STATUS_READY || + old->status == CONTENT_STATUS_DONE) { + if (nsico_convert(new_content) == false) + return false; + } + + return true; +} + #endif |