Add 50/60 Hz switch.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2021-04-03 09:55:05 +01:00
parent 362c9877d4
commit 783ccb9060

View file

@ -536,6 +536,13 @@ namespace sa2
frame->ApplyVideoModeChange(); frame->ApplyVideoModeChange();
} }
bool hertz50 = video.GetVideoRefreshRate() == VR_50HZ;
if (ImGui::Checkbox("50Hz video", &hertz50))
{
video.SetVideoRefreshRate(hertz50 ? VR_50HZ : VR_60HZ);
frame->ApplyVideoModeChange();
}
ImGui::EndTabItem(); ImGui::EndTabItem();
} }