Commit 86976d1c authored by luyikei's avatar luyikei

ConsoleRenderer: Update the implementation of frameChanged

parent e399a1b2
......@@ -43,12 +43,12 @@ ConsoleRenderer::ConsoleRenderer(QObject *parent) :
}
void
ConsoleRenderer::frameChanged( qint64 frame ) const
ConsoleRenderer::frameChanged( qint64 frame, qint64 length ) const
{
static int percent = 0;
int newPercent;
static qint64 percent = 0;
qint64 newPercent;
newPercent = frame * 100 / Core::instance()->workflow()->getLengthFrame();
newPercent = ( frame + 1 ) * 100 / length; // The frame is 0-indexed
if ( newPercent != percent )
{
percent = newPercent;
......
......@@ -35,7 +35,7 @@ public:
void startRender();
private:
void frameChanged( qint64 frame ) const;
void frameChanged( qint64 frame, qint64 length ) const;
private:
QString m_outputFileName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment