Fix bug where changing the script resolution would not update the current visual tool
Originally committed to SVN as r4803.
This commit is contained in:
parent
2324a1f197
commit
84f646b88b
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,6 @@ void VideoDisplay::SetFrame(int frameNumber) {
|
||||||
|
|
||||||
// Render the new frame
|
// Render the new frame
|
||||||
if (context->IsLoaded()) {
|
if (context->IsLoaded()) {
|
||||||
context->GetScriptSize(scriptW, scriptH);
|
|
||||||
tool->SetFrame(frameNumber);
|
tool->SetFrame(frameNumber);
|
||||||
context->GetFrameAsync(currentFrame);
|
context->GetFrameAsync(currentFrame);
|
||||||
}
|
}
|
||||||
|
@ -300,6 +299,7 @@ void VideoDisplay::Render() try {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (video.x > INT_MIN || video.y > INT_MIN || alwaysShowTools->GetBool()) {
|
if (video.x > INT_MIN || video.y > INT_MIN || alwaysShowTools->GetBool()) {
|
||||||
|
context->GetScriptSize(scriptW, scriptH);
|
||||||
tool->Draw();
|
tool->Draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue