[Scummvm-git-logs] scummvm master -> 2cade9bb4dc8277b15d1e93e64bf7f11e9b97f55
bluegr
noreply at scummvm.org
Sun May 3 09:24:45 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:
2cade9bb4d GUI: Make OptionsContainerWidget inherit its clipping rectangle
Commit: 2cade9bb4dc8277b15d1e93e64bf7f11e9b97f55
https://github.com/scummvm/scummvm/commit/2cade9bb4dc8277b15d1e93e64bf7f11e9b97f55
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2026-05-03T12:24:42+03:00
Commit Message:
GUI: Make OptionsContainerWidget inherit its clipping rectangle
The OptionsContainerWidget is a bare container without any graphical
existence. By making it inheriting the clipping rectangle from its boss,
this avoids clipping issues on checkboxes which slightly stick out from
their expected size.
Changed paths:
gui/widget.cpp
gui/widget.h
diff --git a/gui/widget.cpp b/gui/widget.cpp
index 7ba6e13d39c..6c5c405cc47 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -1111,6 +1111,12 @@ void OptionsContainerWidget::reflowLayout() {
_h = maxY - minY;
}
+Common::Rect OptionsContainerWidget::getClipRect() const {
+ // Use boss clipping rectangle to avoid drawing issues on checkboxes
+ // which stick out of their rectangle due to their bevel.
+ return _boss->getClipRect();
+}
+
bool OptionsContainerWidget::containsWidget(Widget *widget) const {
return containsWidgetInChain(_firstWidget, widget);
}
diff --git a/gui/widget.h b/gui/widget.h
index 7f1dd5364f8..0aa62a3586f 100644
--- a/gui/widget.h
+++ b/gui/widget.h
@@ -570,6 +570,7 @@ public:
protected:
// Widget API
void reflowLayout() override;
+ Common::Rect getClipRect() const override;
void drawWidget() override {}
bool containsWidget(Widget *widget) const override;
Widget *findWidget(int x, int y) override;
More information about the Scummvm-git-logs
mailing list