gui: fix zoom outbound not happening with fast startup time
This commit is contained in:
parent
e423cceba8
commit
1f787c37a3
@ -323,14 +323,18 @@ void FPGAViewWidget::paintGL()
|
||||
flags = rendererData_->flags;
|
||||
}
|
||||
|
||||
{
|
||||
QMutexLocker locker(&rendererArgsLock_);
|
||||
rendererArgs_->flags.clear();
|
||||
}
|
||||
|
||||
// Check flags passed through pipeline.
|
||||
if (flags.zoomOutbound) {
|
||||
zoomOutbound();
|
||||
// If we're doing init zoomOutbound, make sure we're actually drawing
|
||||
// something already.
|
||||
if (rendererData_->gfxByStyle[GraphicElement::STYLE_FRAME].vertices.size() != 0) {
|
||||
zoomOutbound();
|
||||
flags.zoomOutbound = false;
|
||||
{
|
||||
QMutexLocker lock(&rendererArgsLock_);
|
||||
rendererArgs_->flags.zoomOutbound = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -251,8 +251,6 @@ class FPGAViewWidget : public QOpenGLWidget, protected QOpenGLFunctions
|
||||
zoomOutbound = other.zoomOutbound;
|
||||
return *this;
|
||||
}
|
||||
|
||||
void clear() { zoomOutbound = false; }
|
||||
};
|
||||
|
||||
struct RendererArgs
|
||||
|
Loading…
Reference in New Issue
Block a user