From 8a1d48fc0373730d9239786aea070b363b346729 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 6 Jan 2016 20:03:27 -0600 Subject: SCI32: Add kFrameOut stub code --- engines/sci/engine/kgraphics32.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'engines/sci/engine') 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; } -- cgit v1.2.3