mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Unified notification of source creation with Source info
New virtual function source::info used for notification after adding source
This commit is contained in:
12
Source.cpp
12
Source.cpp
@@ -733,7 +733,7 @@ FrameBuffer *Source::frame() const
|
||||
return renderbuffer_;
|
||||
}
|
||||
else {
|
||||
static FrameBuffer *black = new FrameBuffer(640,480);
|
||||
static FrameBuffer *black = new FrameBuffer(320,180);
|
||||
return black;
|
||||
}
|
||||
}
|
||||
@@ -916,3 +916,13 @@ void CloneSource::accept(Visitor& v)
|
||||
v.visit(*this);
|
||||
}
|
||||
|
||||
glm::ivec2 CloneSource::icon() const
|
||||
{
|
||||
return glm::ivec2(9, 2);
|
||||
}
|
||||
|
||||
std::string CloneSource::info() const
|
||||
{
|
||||
return std::string("clone of '") + origin_->name() + "'";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user