fix bug, working seek bar

This commit is contained in:
R2DLiu 2020-07-14 23:51:11 -04:00
commit 4f154bce3c
2 changed files with 3 additions and 2 deletions

View file

@ -227,11 +227,12 @@ void SlippiPlaybackStatus::SeekToFrame()
Core::SetState(Core::State::Paused);
SConfig::GetInstance().m_OCFactor = 1.0f;
SConfig::GetInstance().m_OCEnable = false;
targetFrameNum = INT_MAX;
isHardFFW = false;
}
targetFrameNum = INT_MAX;
Core::SetState(prevState);
seekMtx.unlock();
} else {
INFO_LOG(SLIPPI, "Already seeking. Ignoring this call");
}

View file

@ -422,7 +422,7 @@ void DrawSlippiPlaybackControls()
}
ImGui::SetCursorPos(ImVec2(0.0f, ImGui::GetWindowHeight() - 30));
ImGui::PushStyleVar(ImGuiStyleVar_ButtonTextAlign, ImVec2(1.0f, 0.5f));
if (ButtonCustom(ICON_FA_PLAY, ImVec2(32.0f, 32.0f))) {
if (ButtonCustom(ICON_FA_PAUSE, ImVec2(32.0f, 32.0f))) {
INFO_LOG(SLIPPI, "playing");
}
ImGui::PopStyleVar();