diff options
author | antoniou79 | 2018-08-01 20:41:36 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-12-25 12:35:52 +0100 |
commit | 79ff97d5d92502936d9773be28980db6a862e19b (patch) | |
tree | e032423f3e93438ccf69fc08d535dd5abbcfc1f7 /engines/bladerunner/font.cpp | |
parent | 2f28926f22cd954c3db3e725b280339cac2a7297 (diff) | |
download | scummvm-rg350-79ff97d5d92502936d9773be28980db6a862e19b.tar.gz scummvm-rg350-79ff97d5d92502936d9773be28980db6a862e19b.tar.bz2 scummvm-rg350-79ff97d5d92502936d9773be28980db6a862e19b.zip |
BLADERUNNER: switch clause in fonts and style fixes
Diffstat (limited to 'engines/bladerunner/font.cpp')
-rw-r--r-- | engines/bladerunner/font.cpp | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/engines/bladerunner/font.cpp b/engines/bladerunner/font.cpp index 535144f581..da8928757d 100644 --- a/engines/bladerunner/font.cpp +++ b/engines/bladerunner/font.cpp @@ -70,16 +70,27 @@ bool Font::open(const Common::String &fileName, int screenWidth, int screenHeigh _characters[i].dataOffset = stream->readUint32LE(); // special explicit alignment fixes for TAHOMA18 (INTERNAL) font if (fileName == "TAHOMA18.FON") { - // fix P -> i = 81 (ascii code 80 + 1) - if (i == 81 || i == 72 || i == 74 || i == 75 // P, G, I, J - || i == 46) { // '-' + switch (i) { + case 46: // '-' + case 72: // G + case 74: // I + case 75: // J _characters[i].x = 0; // original value was 1 - } - if (i == 81 // P - || i == 83 || i == 84 // R, S, - || i == 86 // U - || i == 87 || i == 88 || i == 89 || i == 90 || i == 91) { // V, W, X, Y ,Z + break; + case 81: // P (ascii code 80 + 1) + _characters[i].x = 0; // original value was 1 + _characters[i].y = 7; // original value was 6 -- bring them down for one (1) pixel + break; + case 83: // R + case 84: // S + case 86: // U + case 87: // V + case 88: // W + case 89: // X + case 90: // Y + case 91: // Z _characters[i].y = 7; // original value was 6 -- bring them down for one (1) pixel + break; } } //debug("char::%d character x: %d, y: %d, w: %d, h:%d, do: %d", i, _characters[i].x, _characters[i].y, _characters[i].width, _characters[i].height, _characters[i].dataOffset); |