From 4c099a93b34aed6e4550ef2941e9d7ca34d44fba Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 9 Nov 2026 10:36:00 +0100 Subject: [PATCH] Start menu pressed +/-: 36x36 picture, drawn +2/+2 on the plain background Compared pixel for pixel with the recording of the real game: the pressed picture in the bottom rows of KB/20.VGA is 36x36 (minus x 0, plus x 36), not 38x38 at x 0/38, and it is drawn two pixels right/down of the raised button over the clean background. Raised and pressed now match the recording except for the mouse cursor. Co-Authored-By: Claude Sonnet 5.5 --- docs/release/1.0.12/RELEASE_NOTES.md | 5 +++-- src/ui/setup.cpp | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/release/1.0.12/RELEASE_NOTES.md b/docs/release/1.0.12/RELEASE_NOTES.md index e62702f..c887981 100644 --- a/docs/release/1.0.12/RELEASE_NOTES.md +++ b/docs/release/1.0.12/RELEASE_NOTES.md @@ -29,8 +29,9 @@ already did). Now pressed while held: decision:** OK of the confirmation. - **Start menu (game setup):** the minus and plus buttons show the original's darker pressed picture while the mouse button is held (also in the joining - manager's setup). It is a different picture, not a shifted copy of the button, - and was taken from a recording of the real game. + manager's setup). It is a different picture (36x36 pixels, drawn two pixels right + and down of the raised button on the plain background), not a shifted copy of the + button, and was compared pixel for pixel with a recording of the real game. - The notices that wait for any click (Sportschau, cup draw, game end screens) have no button and are unchanged. Toggles that stay on (training, filters) keep their lasting state. diff --git a/src/ui/setup.cpp b/src/ui/setup.cpp index ff9a1c7..5fece88 100644 --- a/src/ui/setup.cpp +++ b/src/ui/setup.cpp @@ -151,9 +151,11 @@ Image SetupScreen::render() const { if (joining_ && (!joining_arrow_permission_[b] || (difficulty_arrows_locked_ && (b == 1 || b == 5)))) continue; - // Held down by the mouse: the darker picture at the bottom of the atlas (not a shifted copy of the raised one). + // Held down by the mouse: the darker 36x36 picture in the bottom rows of the atlas (minus at x 0, plus at + // x 36), drawn 2 pixels right and down of the raised button over the plain background (measured pixel for + // pixel against a recording of the original). if (pressed_button_ == b) - copy_rect(out, atlas_, b > 3 ? 0x26 : 0, atlas_.height - 0x26, button_x_[b], button_y_[b], 0x26, 0x26); + copy_rect(out, atlas_, b > 3 ? 36 : 0, atlas_.height - 36, button_x_[b] + 2, button_y_[b] + 2, 36, 36); else copy_rect(out, atlas_, 0x36 + (b > 3 ? 0x26 : 0), button_source_y_, button_x_[b], button_y_[b], 0x26, 0x26);