Cleanup UI for source info, cleanup code

This commit is contained in:
Bruno Herbelin
2022-01-16 17:47:43 +01:00
parent ddccc5ff6b
commit e52785a8b4
7 changed files with 78 additions and 45 deletions

View File

@@ -141,7 +141,9 @@ void CloneSource::setActive (bool on)
void CloneSource::update(float dt)
{
if (active_ && !paused_ && origin_ && cloningsurface_ != nullptr) {
Source::update(dt);
if (!paused_ && origin_ && cloningsurface_ != nullptr) {
double now = g_timer_elapsed (timer_, NULL) ;
@@ -179,10 +181,7 @@ void CloneSource::update(float dt)
// update the source surface to be rendered
texturesurface_->setTextureIndex( stack_[read_index_]->texture() );
}
Source::update(dt);
}