diff options
author | Filippos Karapetis | 2011-10-09 19:13:16 +0300 |
---|---|---|
committer | Filippos Karapetis | 2011-10-09 19:16:05 +0300 |
commit | 1dcad179888fbcbb0e92838cc52efd00a6ab672a (patch) | |
tree | 6f05df934abb340c03931341c5b295283bb864e4 /engines/sci/engine | |
parent | d2bdcf8051d782ccd9d2d01f4dab4f0b9c5172ec (diff) | |
download | scummvm-rg350-1dcad179888fbcbb0e92838cc52efd00a6ab672a.tar.gz scummvm-rg350-1dcad179888fbcbb0e92838cc52efd00a6ab672a.tar.bz2 scummvm-rg350-1dcad179888fbcbb0e92838cc52efd00a6ab672a.zip |
SCI32: Documented the extra 2 params in kCreateTextBitmap(0)
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index a91b9e8e81..e3a41fe361 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -1389,13 +1389,14 @@ reg_t kCreateTextBitmap(EngineState *s, int argc, reg_t *argv) { debugC(kDebugLevelStrings, "kCreateTextBitmap case 0 (%04x:%04x, %04x:%04x, %04x:%04x)", PRINT_REG(argv[1]), PRINT_REG(argv[2]), PRINT_REG(argv[3])); debugC(kDebugLevelStrings, "%s", text.c_str()); - // TODO: arguments 1 and 2 - g_sci->_gfxText32->createTextBitmap(object); + uint16 maxWidth = argv[1].toUint16(); // nsRight - nsLeft + 1 + uint16 maxHeight = argv[2].toUint16(); // nsBottom - nsTop + 1 + g_sci->_gfxText32->createTextBitmap(object, maxWidth, maxHeight); break; } case 1: { if (argc != 2) { - warning("kCreateTextBitmap(0): expected 2 arguments, got %i", argc); + warning("kCreateTextBitmap(1): expected 2 arguments, got %i", argc); return NULL_REG; } reg_t object = argv[1]; |