Added delay and image selection to CloneSource

This commit is contained in:
Bruno Herbelin
2022-01-15 00:15:52 +01:00
parent 3678e8fb27
commit e58041227b
8 changed files with 211 additions and 26 deletions

View File

@@ -178,10 +178,18 @@ void InfoVisitor::visit (RenderSource& s)
void InfoVisitor::visit (CloneSource& s)
{
if (current_id_ == s.id())
if (current_id_ == s.id() || s.origin() == nullptr)
return;
information_ = "Clone of " + s.origin()->name();
std::ostringstream oss;
oss << "Clone of '" << s.origin()->name() << "' " << std::endl;
if (s.frame()){
oss << s.frame()->width() << " x " << s.frame()->height() << ", ";
oss << "RGBA";
}
information_ = oss.str();
current_id_ = s.id();
}