diff options
author | Filippos Karapetis | 2007-09-02 22:47:53 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-09-02 22:47:53 +0000 |
commit | 2dd4f61b5e4ebbe3a4c33a8c8994b3fafdf75642 (patch) | |
tree | 4ebd3c2d98cbce93db5d4040d9ae8bdf8815a644 /engines/agi/preagi_common.cpp | |
parent | f075661221cb661c9a726c2094cc96cbcba40b12 (diff) | |
download | scummvm-rg350-2dd4f61b5e4ebbe3a4c33a8c8994b3fafdf75642.tar.gz scummvm-rg350-2dd4f61b5e4ebbe3a4c33a8c8994b3fafdf75642.tar.bz2 scummvm-rg350-2dd4f61b5e4ebbe3a4c33a8c8994b3fafdf75642.zip |
Text in Mickey is shown correctly now. Also, removed an obsolete function declaration of PutPixel()
svn-id: r28835
Diffstat (limited to 'engines/agi/preagi_common.cpp')
-rw-r--r-- | engines/agi/preagi_common.cpp | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/engines/agi/preagi_common.cpp b/engines/agi/preagi_common.cpp index 199401b85c..20159dcb71 100644 --- a/engines/agi/preagi_common.cpp +++ b/engines/agi/preagi_common.cpp @@ -62,7 +62,7 @@ void PreAgiEngine::drawStr(int row, int col, int attr, const char *buffer) { break; default: - drawChar(col * 8, row * 8, attr, code, (const char*)mickey_fontdata); + _gfx->putTextCharacter(1, col * 8 , row * 8, static_cast<char>(code), attr & 0x0f, (attr & 0xf0) / 0x10, false, mickey_fontdata); if (++col == 320 / 8) { col = 0; @@ -78,25 +78,8 @@ void PreAgiEngine::drawStrMiddle(int row, int attr, const char *buffer) { } void PreAgiEngine::clearTextArea() { - // FIXME: this causes crashes, I imagine it's because we're not currently locking the screen in drawStr for (int row = IDI_MAX_ROW_PIC; row < 200 / 8; row++) { - //drawStr(row, 0, IDA_DEFAULT, " "); // 40 spaces - } -} - -void PreAgiEngine::drawChar(int x, int y, int attr, int code, const char *fontdata) { - int cx, cy; - uint8 color; - - for (cy = 0; cy < 8; cy++) { - for (cx = 0; cx < 8; cx++) { - if (fontdata[(code * 8) + cy] & (1 << (7 - cx))) - color = attr & 0x0f; // foreground color - else - color = (attr & 0xf0) / 0x10; // background color - - _gfx->putPixelsA(x + cx, y + cy, 1, &color); - } + drawStr(row, 0, IDA_DEFAULT, " "); // 40 spaces } } |