diff options
author | Thanasis Antoniou | 2018-09-02 13:44:21 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-12-25 12:35:52 +0100 |
commit | efb0a0f3b79156c265471f2025b65146e7db4cfb (patch) | |
tree | c87491e5f6815b4a35ee036721fe00b145761211 /engines/bladerunner/font.cpp | |
parent | 301acd2ea33579d8776ab6653c9426d10d8570b3 (diff) | |
download | scummvm-rg350-efb0a0f3b79156c265471f2025b65146e7db4cfb.tar.gz scummvm-rg350-efb0a0f3b79156c265471f2025b65146e7db4cfb.tar.bz2 scummvm-rg350-efb0a0f3b79156c265471f2025b65146e7db4cfb.zip |
BLADERUNNER: Override original FONT and TRE
Diffstat (limited to 'engines/bladerunner/font.cpp')
-rw-r--r-- | engines/bladerunner/font.cpp | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/engines/bladerunner/font.cpp b/engines/bladerunner/font.cpp index da8928757d..8eec126fc9 100644 --- a/engines/bladerunner/font.cpp +++ b/engines/bladerunner/font.cpp @@ -68,31 +68,32 @@ bool Font::open(const Common::String &fileName, int screenWidth, int screenHeigh _characters[i].width = stream->readUint32LE(); _characters[i].height = stream->readUint32LE(); _characters[i].dataOffset = stream->readUint32LE(); - // special explicit alignment fixes for TAHOMA18 (INTERNAL) font - if (fileName == "TAHOMA18.FON") { - switch (i) { - case 46: // '-' - case 72: // G - case 74: // I - case 75: // J - _characters[i].x = 0; // original value was 1 - 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; - } - } + // Commented out. Explicit fixes don't really make sense if we can override the TAHOMA18 font +// // special explicit alignment fixes for TAHOMA18 (INTERNAL) font +// if (fileName == "TAHOMA18.FON") { +// switch (i) { +// case 46: // '-' +// case 72: // G +// case 74: // I +// case 75: // J +// _characters[i].x -= 1; // original value was 1 +// break; +// case 81: // P (ascii code 80 + 1) +// _characters[i].x -= 1; // original value was 1 +// _characters[i].y += 1; // 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 += 1; // 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); } for (int i = 0; i < _dataSize; i++) { |