GUI: Use clipping everywhere

This commit is contained in:
Alexander Tkachev 2016-07-01 14:25:05 +06:00 committed by Eugene Sandulenko
parent dc9b32e620
commit 3d636617d0
7 changed files with 117 additions and 20 deletions

View file

@ -135,7 +135,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()->drawDialogBackgroundClip(Common::Rect(_x, _y, _x + _w, _y + getHeight() - 1), getBossClipRect(), ThemeEngine::kDialogBackgroundDefault);
}
Widget *ScrollContainerWidget::findWidget(int x, int y) {