[Scummvm-git-logs] scummvm master -> 98d939d4efceb1f40644c25c866c3d589e0089c9

eriktorbjorn noreply at scummvm.org
Fri Dec 17 14:05:15 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
98d939d4ef SHERLOCK: Fix Rose Tattoo save dialog regression


Commit: 98d939d4efceb1f40644c25c866c3d589e0089c9
    https://github.com/scummvm/scummvm/commit/98d939d4efceb1f40644c25c866c3d589e0089c9
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2021-12-17T15:04:31+01:00

Commit Message:
SHERLOCK: Fix Rose Tattoo save dialog regression

Now that more than one keypress can be processed, we have to update the
"current character" variables each time.

Changed paths:
    engines/sherlock/tattoo/widget_files.cpp


diff --git a/engines/sherlock/tattoo/widget_files.cpp b/engines/sherlock/tattoo/widget_files.cpp
index 4499ff80ac..32a936944f 100644
--- a/engines/sherlock/tattoo/widget_files.cpp
+++ b/engines/sherlock/tattoo/widget_files.cpp
@@ -397,6 +397,10 @@ bool WidgetFiles::getFilename() {
 					++index;
 				}
 			}
+
+			currentChar = (index == (int)filename.size()) ? ' ' : filename[index];
+			charString = Common::String::format("%c", currentChar);
+			width = screen.charWidth(currentChar);
 		}
 	} while (!done && !_vm->shouldQuit());
 




More information about the Scummvm-git-logs mailing list