diff options
author | Matthew Hoops | 2007-09-06 20:51:40 +0000 |
---|---|---|
committer | Matthew Hoops | 2007-09-06 20:51:40 +0000 |
commit | 898043d967e12cad2952ac44295a13d6ae382df7 (patch) | |
tree | d0c03699e609cc4455564112555386a52810afae /engines/agi/preagi_common.cpp | |
parent | be93d3fe8d87d46e737cb9d7c1848a401d388e4f (diff) | |
download | scummvm-rg350-898043d967e12cad2952ac44295a13d6ae382df7.tar.gz scummvm-rg350-898043d967e12cad2952ac44295a13d6ae382df7.tar.bz2 scummvm-rg350-898043d967e12cad2952ac44295a13d6ae382df7.zip |
Winnie now enters the main loop and allows for movement (via the menu)
svn-id: r28867
Diffstat (limited to 'engines/agi/preagi_common.cpp')
-rw-r--r-- | engines/agi/preagi_common.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/engines/agi/preagi_common.cpp b/engines/agi/preagi_common.cpp index 7db1013a42..8f1285e68b 100644 --- a/engines/agi/preagi_common.cpp +++ b/engines/agi/preagi_common.cpp @@ -92,6 +92,24 @@ void PreAgiEngine::clearRow(int row) { drawStr(row, 0, IDA_DEFAULT, " "); // 40 spaces } +void PreAgiEngine::printStr(const char* szMsg) { + clearTextArea(); + drawStr(21, 0, IDA_DEFAULT, szMsg); + _gfx->doUpdate(); + _system->updateScreen(); +} + +void PreAgiEngine::XOR80(char *buffer) { + for (size_t i = 0; i < strlen(buffer); i++) + if (buffer[i] & 0x80) + buffer[i] ^= 0x80; +} + +void PreAgiEngine::printStrXOR(char *szMsg) { + XOR80(szMsg); + printStr(szMsg); +} + // Input functions int PreAgiEngine::getSelection(int type) { |