diff options
Diffstat (limited to 'engines/sci/gfx/operations.h')
-rw-r--r-- | engines/sci/gfx/operations.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/sci/gfx/operations.h b/engines/sci/gfx/operations.h index ec0a810224..865b420681 100644 --- a/engines/sci/gfx/operations.h +++ b/engines/sci/gfx/operations.h @@ -94,6 +94,7 @@ struct GfxState { gfx_options_t *options; Common::Point pointer_pos; /**< Mouse pointer coordinates */ + Common::Rect pointerZone; /**< Rectangle in which the pointer can move */ rect_t clip_zone_unscaled; /**< The current UNSCALED clipping zone */ rect_t clip_zone; /**< The current SCALED clipping zone; a cached scaled version of clip_zone_unscaled */ @@ -424,6 +425,15 @@ int gfxop_set_pointer_view(GfxState *state, int nr, int loop, int cel, Common::P int gfxop_set_pointer_position(GfxState *state, Common::Point pos); /** + * Limits the mouse movement to a given rectangle. + * + * @param[in] state The affected state + * @param[in] rect The rectangle + * @return Any error code or GFX_OK + */ +int gfxop_set_pointer_zone(GfxState *state, Common::Rect rect); + +/** * Retrieves the next input event from the driver. * * @param[in] state The affected state |