aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorColin Snover2016-01-06 20:03:27 -0600
committerColin Snover2016-01-07 16:35:09 -0600
commit8a1d48fc0373730d9239786aea070b363b346729 (patch)
tree828ee001d5401ade09758d8e48ecf7199169ed39 /engines/sci/engine
parent70d89b3e394e46bc96a7fde681cd84f36763ee52 (diff)
downloadscummvm-rg350-8a1d48fc0373730d9239786aea070b363b346729.tar.gz
scummvm-rg350-8a1d48fc0373730d9239786aea070b363b346729.tar.bz2
scummvm-rg350-8a1d48fc0373730d9239786aea070b363b346729.zip
SCI32: Add kFrameOut stub code
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kgraphics32.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/sci/engine/kgraphics32.cpp b/engines/sci/engine/kgraphics32.cpp
index 2ae6b1f1f5..a765fe842e 100644
--- a/engines/sci/engine/kgraphics32.cpp
+++ b/engines/sci/engine/kgraphics32.cpp
@@ -127,6 +127,26 @@ reg_t kGetHighPlanePri(EngineState *s, int argc, reg_t *argv) {
}
reg_t kFrameOut(EngineState *s, int argc, reg_t *argv) {
+/* TODO: Transcribed from SCI engine disassembly.
+ GraphicsMgr &graphicsMgr = g_sci->_graphicsMgr;
+ if (graphicsMgr.palMorphNeeded) {
+ graphicsMgr.PalMorphFrameOut(&g_PalStyleRanges, false);
+ }
+ else {
+ // TODO: Not sure if this is a pointer or not yet.
+ if (g_ScrollState != nullptr) {
+ kFrameOutDoScroll();
+ }
+
+ bool showBits = true;
+ if (argc == 1) {
+ showBits = (bool) argv[0].toUint16();
+ }
+
+ rect SOL_Rect = { .left = 0, .top = 0, .right = UINT32_MAX, .bottom = UINT32_MAX };
+ graphicsMgr.FrameOut(showBits, &rect);
+ }
+*/
g_sci->_gfxFrameout->kernelFrameout();
return NULL_REG;
}