From 4d29ce21d01176f523d6f3b05aefa1b011fc756c Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sat, 27 Jan 2018 08:59:53 +0100 Subject: GUI: Unify clip and non-clip draw calls --- gui/widgets/scrollbar.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gui/widgets/scrollbar.cpp') diff --git a/gui/widgets/scrollbar.cpp b/gui/widgets/scrollbar.cpp index b0e2576ec1..38cdc6fda6 100644 --- a/gui/widgets/scrollbar.cpp +++ b/gui/widgets/scrollbar.cpp @@ -203,11 +203,7 @@ void ScrollBarWidget::drawWidget() { state = ThemeEngine::kScrollbarStateSlider; } - Common::Rect clipRect = getBossClipRect(); - //scrollbar is not a usual child of ScrollContainerWidget, so it gets this special treatment - if (dynamic_cast(_boss)) - clipRect.right += _w; - g_gui.theme()->drawScrollbarClip(Common::Rect(_x, _y, _x+_w, _y+_h), clipRect, _sliderPos, _sliderHeight, state, _state); + g_gui.theme()->drawScrollbar(Common::Rect(_x, _y, _x + _w, _y + _h), _sliderPos, _sliderHeight, state); } } // End of namespace GUI -- cgit v1.2.3