mirror of
https://github.com/Vita3K/Vita3K.git
synced 2026-07-11 01:34:23 +02:00
gui/manual: fix max_page_count
This commit is contained in:
@@ -268,7 +268,7 @@ void draw_manual(GuiState &gui, EmuEnvState &emuenv) {
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_GrabRounding, 50.f * SCALE.y);
|
||||
ImGui::SetCursorPos(ImVec2((display_size.x / 2) - (SLIDER_WIDTH / 2.f), (POPUP_HEIGHT / 2) - (15.f * SCALE.x)));
|
||||
const auto previous_page = current_page;
|
||||
ImGui::SliderInt("##slider_current_manual", ¤t_page, 0, total_pages, slider.c_str());
|
||||
ImGui::SliderInt("##slider_current_manual", ¤t_page, 0, max_pages_index, slider.c_str());
|
||||
if (current_page != previous_page)
|
||||
change_page(emuenv, current_page);
|
||||
ImGui::PopStyleVar(2);
|
||||
|
||||
Reference in New Issue
Block a user