aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-02-02 17:20:21 +0000
committerFilippos Karapetis2010-02-02 17:20:21 +0000
commite321654dcd5e8c33f3ec3bfc531ef486e24f01c4 (patch)
tree7335b383db7b6b1c3642f28490bd93aaab4cfc09
parent6b26f76f707ebd328e6c490198d8fdb80911e503 (diff)
downloadscummvm-rg350-e321654dcd5e8c33f3ec3bfc531ef486e24f01c4.tar.gz
scummvm-rg350-e321654dcd5e8c33f3ec3bfc531ef486e24f01c4.tar.bz2
scummvm-rg350-e321654dcd5e8c33f3ec3bfc531ef486e24f01c4.zip
Added a stub for kCreateTextBitmap, which shows the text that should be drawn on screen
svn-id: r47816
-rw-r--r--engines/sci/engine/kernel.cpp1
-rw-r--r--engines/sci/engine/kernel.h2
-rw-r--r--engines/sci/engine/kernel32.cpp9
3 files changed, 12 insertions, 0 deletions
diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp
index 158be262ea..f1785c720f 100644
--- a/engines/sci/engine/kernel.cpp
+++ b/engines/sci/engine/kernel.cpp
@@ -356,6 +356,7 @@ SciKernelFunction kfunct_mappers[] = {
DEFUN("ListIndexOf", kListIndexOf, "lo"),
DEFUN("OnMe", kOnMe, "iio.*"),
DEFUN("InPolygon", kInPolygon, "iio"),
+ DEFUN("CreateTextBitmap", kCreateTextBitmap, "iiio"),
// SCI2.1 Kernel Functions
DEFUN("Save", kSave, ".*"),
diff --git a/engines/sci/engine/kernel.h b/engines/sci/engine/kernel.h
index 18288b55e9..8d84142854 100644
--- a/engines/sci/engine/kernel.h
+++ b/engines/sci/engine/kernel.h
@@ -408,6 +408,8 @@ reg_t kString(EngineState *s, int argc, reg_t *argv);
reg_t kAddScreenItem(EngineState *s, int argc, reg_t *argv);
reg_t kUpdateScreenItem(EngineState *s, int argc, reg_t *argv);
reg_t kDeleteScreenItem(EngineState *s, int argc, reg_t *argv);
+// Text
+reg_t kCreateTextBitmap(EngineState *s, int argc, reg_t *argv);
// "Planes" in SCI32 are pictures
reg_t kAddPlane(EngineState *s, int argc, reg_t *argv);
reg_t kDeletePlane(EngineState *s, int argc, reg_t *argv);
diff --git a/engines/sci/engine/kernel32.cpp b/engines/sci/engine/kernel32.cpp
index 6aaed61cad..2ed1cfd647 100644
--- a/engines/sci/engine/kernel32.cpp
+++ b/engines/sci/engine/kernel32.cpp
@@ -761,6 +761,15 @@ reg_t kInPolygon(EngineState *s, int argc, reg_t *argv) {
return kAvoidPath(s, argc, argv);
}
+reg_t kCreateTextBitmap(EngineState *s, int argc, reg_t *argv) {
+ // TODO: argument 0 is usually 0, and arguments 1 and 2 are usually 1
+ reg_t object = argv[3];
+ Common::String text = s->_segMan->getString(GET_SEL32(s->_segMan, object, text));
+ debug("%s\n", text.c_str());
+
+ return NULL_REG;
+}
+
} // End of namespace Sci
#endif // ENABLE_SCI32