GUI: Don't display the ScrollContainer background inside tabs
Fixes #10645.
This commit is contained in:
parent
91c463184d
commit
7c570d9b25
4 changed files with 13 additions and 2 deletions
|
@ -41,6 +41,7 @@ ScrollContainerWidget::ScrollContainerWidget(GuiObject *boss, const Common::Stri
|
|||
void ScrollContainerWidget::init() {
|
||||
setFlags(WIDGET_ENABLED);
|
||||
_type = kScrollContainerWidget;
|
||||
_backgroundType = ThemeEngine::kDialogBackgroundDefault;
|
||||
_verticalScroll = new ScrollBarWidget(this, _w-16, 0, 16, _h);
|
||||
_verticalScroll->setTarget(this);
|
||||
_scrolledX = 0;
|
||||
|
@ -145,8 +146,7 @@ void ScrollContainerWidget::reflowLayout() {
|
|||
}
|
||||
|
||||
void ScrollContainerWidget::drawWidget() {
|
||||
g_gui.theme()->drawDialogBackground(Common::Rect(_x, _y, _x + _w, _y + getHeight() - 1),
|
||||
ThemeEngine::kDialogBackgroundDefault);
|
||||
g_gui.theme()->drawDialogBackground(Common::Rect(_x, _y, _x + _w, _y + getHeight() - 1), _backgroundType);
|
||||
}
|
||||
|
||||
bool ScrollContainerWidget::containsWidget(Widget *w) const {
|
||||
|
@ -169,4 +169,8 @@ Common::Rect ScrollContainerWidget::getClipRect() const {
|
|||
return Common::Rect(getAbsX(), getAbsY(), getAbsX() + _w, getAbsY() + getHeight());
|
||||
}
|
||||
|
||||
void ScrollContainerWidget::setBackgroundType(ThemeEngine::DialogBackground backgroundType) {
|
||||
_backgroundType = backgroundType;
|
||||
}
|
||||
|
||||
} // End of namespace GUI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue