mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 19:16:21 +00:00
GUI: Fix out-of-bounds check in EditableWidget::drawCaret.
The line "y + editRect.height() + 2" is not included in drawing anymore. Thus it is allowed to equal EditableWidget::_h.
This commit is contained in:
parent
aaad08c9fe
commit
bb4a730a88
@ -263,7 +263,7 @@ void EditableWidget::drawCaret(bool erase) {
|
||||
|
||||
x += getCaretOffset();
|
||||
|
||||
if (y < 0 || y + editRect.height() - 2 >= _h)
|
||||
if (y < 0 || y + editRect.height() - 2 > _h)
|
||||
return;
|
||||
|
||||
x += getAbsX();
|
||||
|
Loading…
x
Reference in New Issue
Block a user