mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
GUI: RTL: Fix lists being overdrawn when tooltip focused
This commit is contained in:
committed by
Eugene Sandulenko
parent
cef4f20eec
commit
aa802df7aa
@@ -572,15 +572,21 @@ void ListWidget::drawWidget() {
|
||||
color = _listColors[_listIndex[pos]];
|
||||
}
|
||||
|
||||
Common::Rect r1(_x + r.left, y, _x + r.right, y + fontHeight - 2);
|
||||
|
||||
if (g_gui.useRTL() && _numberingMode == kListNumberingOff && _scrollBar->isVisible()) {
|
||||
r1.translate(_scrollBarWidth, 0);
|
||||
}
|
||||
|
||||
if (_selectedItem == pos && _editMode) {
|
||||
buffer = _editString;
|
||||
color = _editColor;
|
||||
adjustOffset();
|
||||
g_gui.theme()->drawText(Common::Rect(_x + r.left, y, _x + r.right, y + fontHeight - 2), buffer, _state,
|
||||
g_gui.theme()->drawText(r1, buffer, _state,
|
||||
alignment, inverted, pad, true, ThemeEngine::kFontStyleBold, color);
|
||||
} else {
|
||||
buffer = _list[pos];
|
||||
g_gui.theme()->drawText(Common::Rect(_x + r.left, y, _x + r.right, y + fontHeight - 2), buffer, _state,
|
||||
g_gui.theme()->drawText(r1, buffer, _state,
|
||||
alignment, inverted, pad, true, ThemeEngine::kFontStyleBold, color);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user