From 70d89b3e394e46bc96a7fde681cd84f36763ee52 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 6 Jan 2016 20:03:04 -0600 Subject: SCI32: Add kSetPalStyleRange stub code --- engines/sci/engine/kgraphics32.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'engines/sci/engine/kgraphics32.cpp') diff --git a/engines/sci/engine/kgraphics32.cpp b/engines/sci/engine/kgraphics32.cpp index 5de440c536..2ae6b1f1f5 100644 --- a/engines/sci/engine/kgraphics32.cpp +++ b/engines/sci/engine/kgraphics32.cpp @@ -131,6 +131,22 @@ reg_t kFrameOut(EngineState *s, int argc, reg_t *argv) { return NULL_REG; } +reg_t kSetPalStyleRange(EngineState *s, int argc, reg_t *argv) { +/* TODO: Transcribed from SCI engine disassembly. + uint16 start = argv[0].toUint16(); + uint16 end = argv[1].toUint16(); + if (end <= start) { + uint16 index = start; + while (index <= end) { + g_PalStyleRanges[index] = 0; + } + } +*/ + + kStub(s, argc, argv); + return NULL_REG; +} + reg_t kObjectIntersect(EngineState *s, int argc, reg_t *argv) { Common::Rect objRect1 = g_sci->_gfxCompare->getNSRect(argv[0]); Common::Rect objRect2 = g_sci->_gfxCompare->getNSRect(argv[1]); -- cgit v1.2.3