[Scummvm-git-logs] scummvm master -> 89d2edf6bdd5147452b6627cd778bf9fbb360482

salty-horse ori at avtalion.name
Fri Feb 12 19:28:26 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:
89d2edf6bd AGS: Fix incorrect string encoding for non-English games


Commit: 89d2edf6bdd5147452b6627cd778bf9fbb360482
    https://github.com/scummvm/scummvm/commit/89d2edf6bdd5147452b6627cd778bf9fbb360482
Author: Ori Avtalion (ori at avtalion.name)
Date: 2021-02-12T21:19:41+02:00

Commit Message:
AGS: Fix incorrect string encoding for non-English games

8-bit character encoding is used (ISO 8859 family).

Changed paths:
    engines/ags/lib/alfont/alfont.cpp


diff --git a/engines/ags/lib/alfont/alfont.cpp b/engines/ags/lib/alfont/alfont.cpp
index c657bdaf40..36e0e8d371 100644
--- a/engines/ags/lib/alfont/alfont.cpp
+++ b/engines/ags/lib/alfont/alfont.cpp
@@ -60,7 +60,7 @@ size_t alfont_text_height(ALFONT_FONT *font) {
 
 void alfont_textout(BITMAP *bmp, ALFONT_FONT *font, const char *text, int x, int y, uint32 color) {
 	Graphics::ManagedSurface &surf = **bmp;
-	font->getFont()->drawString(&surf, Common::U32String(text), x, y, bmp->w - x, color);
+	font->getFont()->drawString(&surf, Common::String(text), x, y, bmp->w - x, color);
 }
 
 void alfont_textout_aa(BITMAP *bmp, ALFONT_FONT *font, const char *text, int x, int y, uint32 color) {




More information about the Scummvm-git-logs mailing list