[Scummvm-cvs-logs] scummvm master -> 9a3084d320808554ba5d35b5fb9c36458da2eb55
lskovlun
lskovlun at sprogklog.dk
Mon Dec 28 05:51:38 CET 2015
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:
9a3084d320 SCI: Fix when more than 10 font codes are used
Commit: 9a3084d320808554ba5d35b5fb9c36458da2eb55
https://github.com/scummvm/scummvm/commit/9a3084d320808554ba5d35b5fb9c36458da2eb55
Author: Lars Skovlund (lskovlun at sprogklog.dk)
Date: 2015-12-28T05:50:26+01:00
Commit Message:
SCI: Fix when more than 10 font codes are used
Changed paths:
engines/sci/graphics/text16.cpp
diff --git a/engines/sci/graphics/text16.cpp b/engines/sci/graphics/text16.cpp
index 89c9be5..d118302 100644
--- a/engines/sci/graphics/text16.cpp
+++ b/engines/sci/graphics/text16.cpp
@@ -99,10 +99,8 @@ int16 GfxText16::CodeProcessing(const char *&text, GuiResourceId orgFontId, int1
// c -> sets textColor to current port pen color
// cX -> sets textColor to _textColors[X-1]
curCode = textCode[0];
- curCodeParm = textCode[1];
- if (Common::isDigit(curCodeParm)) {
- curCodeParm -= '0';
- } else {
+ curCodeParm = strtol(textCode+1, NULL, 10);
+ if (!Common::isDigit(textCode[1])) {
curCodeParm = -1;
}
switch (curCode) {
More information about the Scummvm-git-logs
mailing list