diff options
author | Colin Snover | 2017-07-22 15:43:59 -0500 |
---|---|---|
committer | Colin Snover | 2017-07-23 10:35:13 -0500 |
commit | 3d92f05261fbbfbb491ed855ed06167ab94ad3d3 (patch) | |
tree | 74c2ff6542aa79c940fdf7f96235929f061c4c1f /engines/sci | |
parent | 8bab5a3467519fdfd8509b8250d12a97e4a2e02e (diff) | |
download | scummvm-rg350-3d92f05261fbbfbb491ed855ed06167ab94ad3d3.tar.gz scummvm-rg350-3d92f05261fbbfbb491ed855ed06167ab94ad3d3.tar.bz2 scummvm-rg350-3d92f05261fbbfbb491ed855ed06167ab94ad3d3.zip |
SCI32: Fix hot rectangle events
This fixes delayed mouse cursor updates during the chase scene in
Phant1.
Refs Trac#9975.
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/engine/kevent.cpp | 8 | ||||
-rw-r--r-- | engines/sci/event.h | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/engines/sci/engine/kevent.cpp b/engines/sci/engine/kevent.cpp index b240c947bf..85665cde7f 100644 --- a/engines/sci/engine/kevent.cpp +++ b/engines/sci/engine/kevent.cpp @@ -206,6 +206,14 @@ reg_t kGetEvent(EngineState *s, int argc, reg_t *argv) { } break; +#ifdef ENABLE_SCI32 + case SCI_EVENT_HOT_RECTANGLE: + writeSelectorValue(segMan, obj, SELECTOR(type), curEvent.type); + writeSelectorValue(segMan, obj, SELECTOR(message), curEvent.hotRectangleIndex); + s->r_acc = TRUE_REG; + break; +#endif + default: // Return a null event writeSelectorValue(segMan, obj, SELECTOR(type), SCI_EVENT_NONE); diff --git a/engines/sci/event.h b/engines/sci/event.h index 3b18db2f92..b06d2ae429 100644 --- a/engines/sci/event.h +++ b/engines/sci/event.h @@ -63,7 +63,7 @@ struct SciEvent { #define SCI_EVENT_DIRECTION (1 << 6) #define SCI_EVENT_SAID (1 << 7) #ifdef ENABLE_SCI32 -#define SCI_EVENT_HOT_RECTANGLE (1 << 8) +#define SCI_EVENT_HOT_RECTANGLE (1 << 10) #endif /*Fake values for other events*/ #define SCI_EVENT_QUIT (1 << 11) |