mirror of https://github.com/odrling/Aegisub
Update the frame number display and visual typesetting tool when opening a new video
Originally committed to SVN as r5264.
This commit is contained in:
parent
10c3a2ca16
commit
14420102e4
|
@ -265,12 +265,11 @@ void VideoDisplay::UploadFrameData(FrameReadyEvent &evt) {
|
||||||
void VideoDisplay::OnVideoOpen() {
|
void VideoDisplay::OnVideoOpen() {
|
||||||
if (!con->videoController->IsLoaded()) return;
|
if (!con->videoController->IsLoaded()) return;
|
||||||
UpdateSize();
|
UpdateSize();
|
||||||
currentFrame = 0;
|
|
||||||
con->videoController->GetFrameAsync(0);
|
|
||||||
UpdateRelativeTimes(0);
|
|
||||||
if (!tool.get()) tool.reset(new VisualToolCross(this, con, video, toolBar));
|
if (!tool.get()) tool.reset(new VisualToolCross(this, con, video, toolBar));
|
||||||
|
SetFrame(0);
|
||||||
tool->Refresh();
|
tool->Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoDisplay::OnCommit(int type) {
|
void VideoDisplay::OnCommit(int type) {
|
||||||
if (type == AssFile::COMMIT_FULL || type == AssFile::COMMIT_UNDO)
|
if (type == AssFile::COMMIT_FULL || type == AssFile::COMMIT_UNDO)
|
||||||
con->videoController->GetScriptSize(scriptW, scriptH);
|
con->videoController->GetScriptSize(scriptW, scriptH);
|
||||||
|
|
Loading…
Reference in New Issue