Implement draw_clone()

svn path=/trunk/netsurf/; revision=10379
This commit is contained in:
John Mark Bell 2010-04-11 23:11:40 +00:00
parent 83944723c0
commit 952682b906

View File

@ -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