[Scummvm-git-logs] scummvm master -> ae779b2a29cb135573b4cdcc12ebb77df99b15e2
sev-
noreply at scummvm.org
Mon Nov 28 23:20:26 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:
ae779b2a29 JANITORIAL: Code formatting
Commit: ae779b2a29cb135573b4cdcc12ebb77df99b15e2
https://github.com/scummvm/scummvm/commit/ae779b2a29cb135573b4cdcc12ebb77df99b15e2
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2022-11-29T00:20:16+01:00
Commit Message:
JANITORIAL: Code formatting
Changed paths:
engines/sherlock/fonts.cpp
diff --git a/engines/sherlock/fonts.cpp b/engines/sherlock/fonts.cpp
index 59d7bf5b959..dfb75f7e281 100644
--- a/engines/sherlock/fonts.cpp
+++ b/engines/sherlock/fonts.cpp
@@ -42,7 +42,7 @@ void Fonts::setVm(SherlockEngine *vm) {
_vm = vm;
_font = nullptr;
_charCount = 0;
- _isModifiedEucCn = _vm->getLanguage() == Common::Language::ZH_ANY && _vm->getGameID() == GameType::GType_RoseTattoo;
+ _isModifiedEucCn = (_vm->getLanguage() == Common::Language::ZH_ANY && _vm->getGameID() == GameType::GType_RoseTattoo);
}
void Fonts::freeFont() {
@@ -351,7 +351,7 @@ int Fonts::stringHeight(const Common::String &str) {
for (const char *c = str.c_str(); *c; ++c) {
byte curChar = *c;
byte nextChar = c[1];
-
+
if (_isModifiedEucCn && !isInEucEscape && curChar == '@' && nextChar == '$') {
height = MAX(height, charHeight(' '));
c++;
More information about the Scummvm-git-logs
mailing list