JANITORIAL: Formatting fixes

This commit is contained in:
Eugene Sandulenko 2020-11-09 19:33:57 +01:00
parent 373f872dfa
commit 458b2332d5
2 changed files with 3 additions and 4 deletions

View File

@ -71,7 +71,7 @@ GfxFont *GfxCache::getFont(GuiResourceId fontId) {
if ((fontId == 1001) && (g_sci->getLanguage() == Common::KO_KOR))
_cachedFonts[fontId] = new GfxFontKorean(_screen, fontId);
// Create special SJIS font in japanese games, when font 900 is selected
else if((fontId == 900) && (g_sci->getLanguage() == Common::JA_JPN))
else if ((fontId == 900) && (g_sci->getLanguage() == Common::JA_JPN))
_cachedFonts[fontId] = new GfxFontSjis(_screen, fontId);
else
_cachedFonts[fontId] = new GfxFontFromResource(_resMan, _screen, fontId);

View File

@ -27,8 +27,7 @@
namespace Graphics {
bool checkKorCode(byte hi, byte lo)
{
bool checkKorCode(byte hi, byte lo) {
// hi: xx
// lo: yy
if ((0xA1 > lo) || (0xFE < lo)) {
@ -200,7 +199,7 @@ uint16 ConvertKSToUCS2(uint16 code) {
return _ksToUcs2Table[index];
}
FontKorean *FontKorean::createFont(const char * fontFile) {
FontKorean *FontKorean::createFont(const char *fontFile) {
FontKorean *ret = 0;
// Try ScummVM's font.