mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 04:16:34 +00:00
GUI: Fixed negative index check
This commit is contained in:
parent
2473348cf0
commit
8e4f892ef9
@ -865,7 +865,7 @@ void ThemeEngine::queueDD(DrawData type, const Common::Rect &r, uint32 dynamic,
|
|||||||
void ThemeEngine::queueDDText(TextData type, TextColor color, const Common::Rect &r, const Common::String &text, bool restoreBg,
|
void ThemeEngine::queueDDText(TextData type, TextColor color, const Common::Rect &r, const Common::String &text, bool restoreBg,
|
||||||
bool ellipsis, Graphics::TextAlign alignH, TextAlignVertical alignV, int deltax, const Common::Rect &drawableTextArea) {
|
bool ellipsis, Graphics::TextAlign alignH, TextAlignVertical alignV, int deltax, const Common::Rect &drawableTextArea) {
|
||||||
|
|
||||||
if (type != kTextDataNone && _texts[type] == 0)
|
if (type != kTextDataNone || _texts[type] == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Common::Rect area = r;
|
Common::Rect area = r;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user