diff options
author | Filippos Karapetis | 2011-10-11 02:03:40 +0300 |
---|---|---|
committer | Filippos Karapetis | 2011-10-11 02:03:40 +0300 |
commit | 4cb9a2c809d7b66a4065de68247153f1057c84be (patch) | |
tree | eccbfbf4b0287d3e3a4e0f00d591473e5c676f86 /engines/sci | |
parent | d71aec0b39c7f05a35f6781b84a8717c581b8560 (diff) | |
download | scummvm-rg350-4cb9a2c809d7b66a4065de68247153f1057c84be.tar.gz scummvm-rg350-4cb9a2c809d7b66a4065de68247153f1057c84be.tar.bz2 scummvm-rg350-4cb9a2c809d7b66a4065de68247153f1057c84be.zip |
SCI: kBitmap(1) is kDisposeTextBitmap
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index b1314ef02f..be86cb5b49 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -1640,14 +1640,11 @@ reg_t kBitmap(EngineState *s, int argc, reg_t *argv) { uint16 transparent = (argc >= 8) ? argv[7].toUint16() : 0; warning("kBitmap(0): width %d, height %d, skip %d, back %d, width2 %d, height2 %d, transparent %d", width, height, skip, back, width2, height2, transparent); - // returns a pointer to a bitmap + return NULL_REG; // TODO: return a hunk handle for the new bitmap surface } break; - case 1: // dispose bitmap surface - // 1 param, bitmap pointer, called e.g. from MenuItem::dispose - // in Torin's Passage, script 64893 - warning("kBitmap(1), bitmap ptr %04x:%04x", PRINT_REG(argv[1])); - break; + case 1: // dispose text bitmap surface + return kDisposeTextBitmap(s, argc - 1, argv + 1); case 2: // dispose bitmap surface, with extra param // 2 params, called e.g. from MenuItem::dispose in Torin's Passage, // script 64893 |