mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-27 04:07:05 +00:00
SHERLOCK: Fix display of 'Text Not Found' when doing journal searches
This commit is contained in:
parent
e115da8f3d
commit
a57f569244
@ -1041,6 +1041,7 @@ int Journal::getSearchString(bool printError) {
|
||||
|
||||
if (printError) {
|
||||
// Give time for user to see the message
|
||||
events.setButtonState();
|
||||
for (int idx = 0; idx < 40 && !_vm->shouldQuit() && !events.kbHit() && !events._released; ++idx) {
|
||||
events.pollEvents();
|
||||
events.setButtonState();
|
||||
@ -1048,7 +1049,7 @@ int Journal::getSearchString(bool printError) {
|
||||
}
|
||||
|
||||
events.clearKeyboard();
|
||||
screen.fillRect(Common::Rect(13, 186, 306, 195), BUTTON_MIDDLE);
|
||||
screen._backBuffer1.fillRect(Common::Rect(13, 186, 306, 195), BUTTON_MIDDLE);
|
||||
|
||||
if (!_find.empty()) {
|
||||
screen.gPrint(Common::Point(15, 185), TALK_FOREGROUND, "%s", _find.c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user