[Scummvm-git-logs] scummvm master -> 53f79969a6734e4c6ce26ef2a9c9dfe8beb1fd69

dreammaster noreply at scummvm.org
Wed Jun 29 02:43:05 UTC 2022


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:
53f79969a6 CHEWY: Fix rendering of German accented characters


Commit: 53f79969a6734e4c6ce26ef2a9c9dfe8beb1fd69
    https://github.com/scummvm/scummvm/commit/53f79969a6734e4c6ce26ef2a9c9dfe8beb1fd69
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2022-06-28T19:42:30-07:00

Commit Message:
CHEWY: Fix rendering of German accented characters

Changed paths:
    engines/chewy/main.cpp


diff --git a/engines/chewy/main.cpp b/engines/chewy/main.cpp
index aea1db4202a..3c573297395 100644
--- a/engines/chewy/main.cpp
+++ b/engines/chewy/main.cpp
@@ -1953,7 +1953,7 @@ Graphics::Surface *ChewyFont::getLine(const Common::String &texts) {
 	line->fillRect(Common::Rect(line->w, line->h), 0xFF);
 
 	for (uint i = 0; i < texts.size(); i++) {
-		subrect.moveTo((texts[i] - _first) * _dataWidth, 0);
+		subrect.moveTo(((byte)texts[i] - _first) * _dataWidth, 0);
 		line->copyRectToSurface(_fontSurface, i * (_deltaX - 2), 0, subrect);
 	}
 




More information about the Scummvm-git-logs mailing list