[Scummvm-git-logs] scummvm master -> 0d3206f2d93976bd1e4a850ca3ef62402db43dbb
eriktorbjorn
noreply at scummvm.org
Mon Jan 31 10:31:05 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
0d3206f2d9 BBVS: Fix main menu button sizes
Commit: 0d3206f2d93976bd1e4a850ca3ef62402db43dbb
https://github.com/scummvm/scummvm/commit/0d3206f2d93976bd1e4a850ca3ef62402db43dbb
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2022-01-31T11:30:32+01:00
Commit Message:
BBVS: Fix main menu button sizes
Don't scale the button sizes by the GUI scale factor, because they're
specifically designed to fit the game window. The GUI scale factor still
affects the text size within the buttons, which may or may not be a
feature. I don't know how to change that, and they look nothing like the
original buttons anyway.
Changed paths:
engines/bbvs/dialogs.cpp
diff --git a/engines/bbvs/dialogs.cpp b/engines/bbvs/dialogs.cpp
index b33bf0bc678..eeb973e36bd 100644
--- a/engines/bbvs/dialogs.cpp
+++ b/engines/bbvs/dialogs.cpp
@@ -110,19 +110,19 @@ void MainMenu::reflowLayout() {
x = 0;
y = 0;
- _buttons[0]->resize(x, y, buttonWidth, buttonHeight);
+ _buttons[0]->resize(x, y, buttonWidth, buttonHeight, false);
x += buttonWidth + buttonPadding;
- _buttons[1]->resize(x, y, buttonWidth, buttonHeight);
+ _buttons[1]->resize(x, y, buttonWidth, buttonHeight, false);
x = 0;
y += buttonHeight + buttonPadding;
- _buttons[2]->resize(x, y, buttonWidth, buttonHeight);
+ _buttons[2]->resize(x, y, buttonWidth, buttonHeight, false);
x += buttonWidth + buttonPadding;
- _buttons[3]->resize(x, y, buttonWidth, buttonHeight);
+ _buttons[3]->resize(x, y, buttonWidth, buttonHeight, false);
x = (_w - buttonWidth) / 2; // Center the last button
y += buttonHeight + buttonPadding;
- _buttons[4]->resize(x, y, buttonWidth, buttonHeight);
+ _buttons[4]->resize(x, y, buttonWidth, buttonHeight, false);
GUI::Dialog::reflowLayout();
More information about the Scummvm-git-logs
mailing list