mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
GUI: Proper scaling of indicator triangle on lowres theme
This commit is contained in:
@@ -75,7 +75,8 @@ void GridItemWidget::move(int x, int y) {
|
||||
|
||||
void GridItemWidget::drawWidget() {
|
||||
if (_activeEntry->isHeader) {
|
||||
g_gui.theme()->drawFoldIndicator(Common::Rect(_x - _h, _y, _x, _y + _h), _grid->groupExpanded(_activeEntry->entryID));
|
||||
const int indicatorSize = MIN((int)_h, _grid->_scrollWindowPaddingX);
|
||||
g_gui.theme()->drawFoldIndicator(Common::Rect(_x - indicatorSize, _y, _x, _y + indicatorSize), _grid->groupExpanded(_activeEntry->entryID));
|
||||
g_gui.theme()->drawText(Common::Rect(_x, _y, _x + _w, _y + _h), Common::U32String(_activeEntry->title),
|
||||
ThemeEngine::kStateEnabled, Graphics::kTextAlignLeft, ThemeEngine::kTextInversionFocus, _h, false);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user