[Scummvm-cvs-logs] SF.net SVN: scummvm:[45287] scummvm/trunk/engines/sci/engine/kgraphics.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Tue Oct 20 21:56:38 CEST 2009
Revision: 45287
http://scummvm.svn.sourceforge.net/scummvm/?rev=45287&view=rev
Author: m_kiewitz
Date: 2009-10-20 19:56:37 +0000 (Tue, 20 Oct 2009)
Log Message:
-----------
SCI: kPalVary basic
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kgraphics.cpp
Modified: scummvm/trunk/engines/sci/engine/kgraphics.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kgraphics.cpp 2009-10-20 19:52:18 UTC (rev 45286)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp 2009-10-20 19:56:37 UTC (rev 45287)
@@ -632,7 +632,32 @@
// This here is needed to make Pharkas work
reg_t kPalVary(EngineState *s, int argc, reg_t *argv) {
- warning("kPalVary() called parameters = %d", argc);
+ uint16 operation = argv[0].toUint16();
+
+ switch (operation) {
+ case 0: { // Init
+ GuiResourceId paletteId;
+ uint16 time;
+ if (argc == 3) {
+ paletteId = argv[1].toUint16();
+ time = argv[2].toUint16();
+ // forward call to SciGui
+ } else {
+ warning("kPalVary(init) called with unsupported argc %d", argc);
+ }
+ break;
+ }
+ case 3: { // DeInit
+ if (argc == 1) {
+ // forward call to SciGui
+ } else {
+ warning("kPalVary(deinit) called with unsupported argc %d", argc);
+ }
+ break;
+ }
+ default:
+ warning("kPalVary(%d), not implemented (argc = %d)", operation, argc);
+ }
return NULL_REG;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list