aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorFilippos Karapetis2011-10-11 02:33:45 +0300
committerFilippos Karapetis2011-10-11 02:33:45 +0300
commita9c6d2a4c4e80708d63dbbd7dc2c0419258d6d19 (patch)
tree1f161c57d6b0bd1449ecbfd519c13897e4e0fa8e /engines/sci/engine
parent4cb9a2c809d7b66a4065de68247153f1057c84be (diff)
downloadscummvm-rg350-a9c6d2a4c4e80708d63dbbd7dc2c0419258d6d19.tar.gz
scummvm-rg350-a9c6d2a4c4e80708d63dbbd7dc2c0419258d6d19.tar.bz2
scummvm-rg350-a9c6d2a4c4e80708d63dbbd7dc2c0419258d6d19.zip
SCI: Some work on the SCI32 bitmap / font code
- Initial implementation of kBitmap(0) - Bugfixes for fonts in upscaled games
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kgraphics.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index be86cb5b49..5c33db080f 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -1637,10 +1637,8 @@ reg_t kBitmap(EngineState *s, int argc, reg_t *argv) {
uint16 back = argv[4].toUint16();
uint16 width2 = (argc >= 6) ? argv[5].toUint16() : 0;
uint16 height2 = (argc >= 7) ? argv[6].toUint16() : 0;
- 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);
- return NULL_REG; // TODO: return a hunk handle for the new bitmap surface
+ uint16 transparentFlag = (argc >= 8) ? argv[7].toUint16() : 0;
+ return g_sci->_gfxText32->createTextBitmapSci21(width, height, skip, back, width2, height2, transparentFlag);
}
break;
case 1: // dispose text bitmap surface