mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
Implement draw_clone()
svn path=/trunk/netsurf/; revision=10379
This commit is contained in:
parent
83944723c0
commit
952682b906
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user