[PR #191] [MERGED] Fix GUI Scale button in classic Video Settings #2392

Closed
opened 2026-11-02 15:55:36 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/191
Author: @rdbtCVS
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @ludovic111

Base: main ← Head: t3code/classic-video-gui-button


📝 Commits (2)

  • e57a437 Fix GUI Scale button in classic Video Settings
  • b485391 Use the current framebuffer for GUI Scale cycle limits

📊 Changes

6 files changed (+173 additions, -37 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+5 -0)
📝 crates/horizon-client/src/game/options.rs (+8 -0)
📝 crates/horizon-client/src/graphics_ui.rs (+20 -18)
📝 crates/horizon-client/src/options_horizon.rs (+3 -2)
📝 crates/horizon-client/src/options_ui.rs (+131 -17)
📝 crates/horizon-client/src/settings.rs (+6 -0)

📄 Description

GUI Scale in classic Video Settings was rendered as a slider. It now uses a cycle button with the vanilla options.generic_value caption. Both classic and Horizon settings cycle through Auto and 1..=window::calculate_scale(framebuffer, 0, force_unicode), using the current framebuffer and wrapping in either direction. Saved values are clamped to that maximum once the window is available.

Regression tests cover the actual Video Settings button, drag/release behavior, forward and reverse wraparound, oversized saved values, resized windows, Unicode enforcement, and larger framebuffers with scales above 6.

Validation:

  • cargo test -p horizon-client --lib -- --test-threads=1 — 499 tests passed.
  • cargo clippy -p horizon-client --all-targets -- -D warnings
  • cargo fmt --all -- --check
  • python3 tools/check_public_tree.py

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/191 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `t3code/classic-video-gui-button` --- ### 📝 Commits (2) - [`e57a437`](https://github.com/horizon-rust/horizon/commit/e57a43745ac62951cd4ea953a0f17056e3481edb) Fix GUI Scale button in classic Video Settings - [`b485391`](https://github.com/horizon-rust/horizon/commit/b48539197a0b2b87e0bf62c308b69defcedfbcb5) Use the current framebuffer for GUI Scale cycle limits ### 📊 Changes **6 files changed** (+173 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+5 -0) 📝 `crates/horizon-client/src/game/options.rs` (+8 -0) 📝 `crates/horizon-client/src/graphics_ui.rs` (+20 -18) 📝 `crates/horizon-client/src/options_horizon.rs` (+3 -2) 📝 `crates/horizon-client/src/options_ui.rs` (+131 -17) 📝 `crates/horizon-client/src/settings.rs` (+6 -0) </details> ### 📄 Description GUI Scale in classic Video Settings was rendered as a slider. It now uses a cycle button with the vanilla `options.generic_value` caption. Both classic and Horizon settings cycle through Auto and `1..=window::calculate_scale(framebuffer, 0, force_unicode)`, using the current framebuffer and wrapping in either direction. Saved values are clamped to that maximum once the window is available. Regression tests cover the actual Video Settings button, drag/release behavior, forward and reverse wraparound, oversized saved values, resized windows, Unicode enforcement, and larger framebuffers with scales above 6. Validation: - `cargo test -p horizon-client --lib -- --test-threads=1` — 499 tests passed. - `cargo clippy -p horizon-client --all-targets -- -D warnings` - `cargo fmt --all -- --check` - `python3 tools/check_public_tree.py` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:55:36 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2392
No description provided.