diff options
author | Martin Kiewitz | 2010-01-29 21:30:46 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-01-29 21:30:46 +0000 |
commit | a800855bf4799de2025f6f1220dc363e66aab475 (patch) | |
tree | d97ab9702e0cf7c4a2cd3e0fc25b42de0e96e41b /engines/sci/engine/kernel32.cpp | |
parent | 85517515a76069d77fde6ecfb933f2e133b52a01 (diff) | |
download | scummvm-rg350-a800855bf4799de2025f6f1220dc363e66aab475.tar.gz scummvm-rg350-a800855bf4799de2025f6f1220dc363e66aab475.tar.bz2 scummvm-rg350-a800855bf4799de2025f6f1220dc363e66aab475.zip |
SCI: added new SciGui32 class, Gfx class needs some work though and hopefully i didnt overlook some kernel function that is also used by sci32. now using plane left/top
svn-id: r47679
Diffstat (limited to 'engines/sci/engine/kernel32.cpp')
-rw-r--r-- | engines/sci/engine/kernel32.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/sci/engine/kernel32.cpp b/engines/sci/engine/kernel32.cpp index b4a403bedb..40298dc594 100644 --- a/engines/sci/engine/kernel32.cpp +++ b/engines/sci/engine/kernel32.cpp @@ -30,6 +30,7 @@ #include "sci/engine/state.h" #include "sci/engine/selector.h" #include "sci/graphics/gui.h" +#include "sci/graphics/gui32.h" namespace Sci { @@ -649,7 +650,7 @@ reg_t kSave(EngineState *s, int argc, reg_t *argv) { reg_t kAddScreenItem(EngineState *s, int argc, reg_t *argv) { reg_t viewObj = argv[0]; - s->_gui->addScreenItem(viewObj); + s->_gui32->addScreenItem(viewObj); return NULL_REG; } @@ -663,7 +664,7 @@ reg_t kUpdateScreenItem(EngineState *s, int argc, reg_t *argv) { reg_t kDeleteScreenItem(EngineState *s, int argc, reg_t *argv) { reg_t viewObj = argv[0]; - s->_gui->deleteScreenItem(viewObj); + s->_gui32->deleteScreenItem(viewObj); /* reg_t viewObj = argv[0]; @@ -685,7 +686,7 @@ reg_t kDeleteScreenItem(EngineState *s, int argc, reg_t *argv) { reg_t kAddPlane(EngineState *s, int argc, reg_t *argv) { reg_t planeObj = argv[0]; - s->_gui->addPlane(planeObj); + s->_gui32->addPlane(planeObj); warning("kAddPlane object %04x:%04x", PRINT_REG(planeObj)); return NULL_REG; } @@ -693,7 +694,7 @@ reg_t kAddPlane(EngineState *s, int argc, reg_t *argv) { reg_t kDeletePlane(EngineState *s, int argc, reg_t *argv) { reg_t planeObj = argv[0]; - s->_gui->deletePlane(planeObj); + s->_gui32->deletePlane(planeObj); warning("kDeletePlane object %04x:%04x", PRINT_REG(planeObj)); return NULL_REG; } @@ -701,7 +702,7 @@ reg_t kDeletePlane(EngineState *s, int argc, reg_t *argv) { reg_t kUpdatePlane(EngineState *s, int argc, reg_t *argv) { reg_t planeObj = argv[0]; - s->_gui->updatePlane(planeObj); + s->_gui32->updatePlane(planeObj); return s->r_acc; } @@ -719,7 +720,7 @@ reg_t kFrameOut(EngineState *s, int argc, reg_t *argv) { // as its called right after a view is updated // TODO - s->_gui->frameOut(); + s->_gui32->frameOut(); return NULL_REG; } |