diff options
author | Filippos Karapetis | 2011-10-28 22:19:52 +0300 |
---|---|---|
committer | Filippos Karapetis | 2011-10-28 22:20:33 +0300 |
commit | 4ac2940bc59bbb192a5aa0636e590df4e71becad (patch) | |
tree | 41a91e207a712c9160a61849211d484bed5c750b /engines/sci/engine/kgraphics.cpp | |
parent | d8db7b11c14c03704c7b1a50bbaff72008eddf7a (diff) | |
download | scummvm-rg350-4ac2940bc59bbb192a5aa0636e590df4e71becad.tar.gz scummvm-rg350-4ac2940bc59bbb192a5aa0636e590df4e71becad.tar.bz2 scummvm-rg350-4ac2940bc59bbb192a5aa0636e590df4e71becad.zip |
SCI: Added skeleton code for kEditText (still not working)
Diffstat (limited to 'engines/sci/engine/kgraphics.cpp')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 566f2a9a7d..1483b99125 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -49,6 +49,7 @@ #include "sci/graphics/text16.h" #include "sci/graphics/view.h" #ifdef ENABLE_SCI32 +#include "sci/graphics/controls32.h" #include "sci/graphics/font.h" // TODO: remove once kBitmap is moved in a separate class #include "sci/graphics/text32.h" #include "sci/graphics/frameout.h" @@ -1798,6 +1799,20 @@ reg_t kBitmap(EngineState *s, int argc, reg_t *argv) { return s->r_acc; } +// Used for edit boxes in save/load dialogs. It's a rewritten version of kEditControl, +// but it handles events on its own, using an internal loop, instead of using SCI +// scripts for event management like kEditControl does. Called by script 64914, +// DEdit::hilite(). +reg_t kEditText(EngineState *s, int argc, reg_t *argv) { + reg_t controlObject = argv[0]; + + if (!controlObject.isNull()) { + g_sci->_gfxControls32->kernelTexteditChange(controlObject); + } + + return s->r_acc; +} + #endif } // End of namespace Sci |