mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
Added delay and image selection to CloneSource
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user