[Scummvm-git-logs] scummvm master -> fe2a4156a89f2d285aa087020d1d956ce064ddf7
lephilousophe
noreply at scummvm.org
Sat Feb 7 10:51:31 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
fe2a4156a8 GUI: Don't make dialogs bigger than screen
Commit: fe2a4156a89f2d285aa087020d1d956ce064ddf7
https://github.com/scummvm/scummvm/commit/fe2a4156a89f2d285aa087020d1d956ce064ddf7
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2026-02-07T11:50:18+01:00
Commit Message:
GUI: Don't make dialogs bigger than screen
That triggers an assertion fault when constraining the dimensions just
after.
Changed paths:
gui/ThemeLayout.cpp
diff --git a/gui/ThemeLayout.cpp b/gui/ThemeLayout.cpp
index 12481ba5e8f..5f2b77cf4bd 100644
--- a/gui/ThemeLayout.cpp
+++ b/gui/ThemeLayout.cpp
@@ -294,10 +294,10 @@ void ThemeLayoutMain::reflowLayout(Widget *widgetChain) {
}
if (_w == -1)
- _w = _children[0]->getWidth();
+ _w = MIN(_children[0]->getWidth(), safeArea.width());
if (_h == -1)
- _h = _children[0]->getHeight();
+ _h = MIN(_children[0]->getHeight(), safeArea.height());
if (_y == -1)
_y = (screenH >> 1) - (_h >> 1);
More information about the Scummvm-git-logs
mailing list