aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kgraphics.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2010-06-24 11:54:33 +0000
committerMartin Kiewitz2010-06-24 11:54:33 +0000
commitf93ca1e4242da27079e6ce4cd4d4e8d569984ec4 (patch)
tree81faa804e5ca1d5de337a197373991b6809c6497 /engines/sci/engine/kgraphics.cpp
parent0722d96a3e249a7efe853d77b1432100912499d1 (diff)
downloadscummvm-rg350-f93ca1e4242da27079e6ce4cd4d4e8d569984ec4.tar.gz
scummvm-rg350-f93ca1e4242da27079e6ce4cd4d4e8d569984ec4.tar.bz2
scummvm-rg350-f93ca1e4242da27079e6ce4cd4d4e8d569984ec4.zip
SCI: implement detection for uninitialized temp variable reads and implement direct fixes for them, i couldnt figure out a valid replacement for island, pharkas and laurabow2 work that way. this should also get changed to a replacement table
svn-id: r50211
Diffstat (limited to 'engines/sci/engine/kgraphics.cpp')
-rw-r--r--engines/sci/engine/kgraphics.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index eaef049951..3d1bca320b 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -351,7 +351,7 @@ reg_t kTextSize(EngineState *s, int argc, reg_t *argv) {
}
textWidth = dest[3].toUint16(); textHeight = dest[2].toUint16();
-
+
#ifdef ENABLE_SCI32
if (!g_sci->_gfxText16) {
// TODO: Implement this
@@ -1041,6 +1041,7 @@ reg_t kDrawCel(EngineState *s, int argc, reg_t *argv) {
bool hiresMode = (argc > 7) ? true : false;
reg_t upscaledHiresHandle = (argc > 7) ? argv[7] : NULL_REG;
+#if 0
if (g_sci->getGameId() == "freddypharkas") {
// WORKAROUND
// Script 24 contains code that draws the game menu on screen. It uses a temp variable for setting priority that
@@ -1058,6 +1059,7 @@ reg_t kDrawCel(EngineState *s, int argc, reg_t *argv) {
if ((viewId == 995) && (priority == 0))
priority = 15;
}
+#endif
g_sci->_gfxPaint16->kernelDrawCel(viewId, loopNo, celNo, x, y, priority, paletteNo, hiresMode, upscaledHiresHandle);