diff options
Diffstat (limited to 'engines/sci/gfx')
-rw-r--r-- | engines/sci/gfx/operations.cpp | 16 | ||||
-rw-r--r-- | engines/sci/gfx/operations.h | 12 |
2 files changed, 0 insertions, 28 deletions
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp index 9edba13ae8..305252d672 100644 --- a/engines/sci/gfx/operations.cpp +++ b/engines/sci/gfx/operations.cpp @@ -1284,22 +1284,6 @@ sci_event_t gfxop_get_event(GfxState *state, unsigned int mask) { // View operations -int gfxop_lookup_view_get_cels(GfxState *state, int nr, int loop) { - int real_loop = loop, cel = 0; - gfxr_view_t *view = NULL; - - view = state->gfxResMan->getView(nr, &real_loop, &cel, 0); - - if (!view) { - warning("[GFX] Attempt to retrieve number of cels from invalid/broken view %d", nr); - return 0; - } else if (real_loop != loop) { - warning("[GFX] Loop number was corrected from %d to %d in view %d", loop, real_loop, nr); - } - - return view->loops[real_loop].cels_nr; -} - void gfxop_get_cel_parameters(GfxState *state, int nr, int loop, int cel, int *width, int *height, Common::Point *offset) { gfxr_view_t *view = NULL; gfx_pixmap_t *pxm = NULL; diff --git a/engines/sci/gfx/operations.h b/engines/sci/gfx/operations.h index 6e6ff938e5..1e3dd41b52 100644 --- a/engines/sci/gfx/operations.h +++ b/engines/sci/gfx/operations.h @@ -334,18 +334,6 @@ sci_event_t gfxop_get_event(GfxState *state, unsigned int mask); /** @{ */ /** - * Determines the number of cels associated stored in a loop. - * - * @param[in] state The state to look up in - * @param[in] nr Number of the view to look up in - * @param[in] loop Number of the loop the number of cels of are to be - * investigated - * @return The number of cels in that loop, or GFX_ERROR if either the - * view or the loop didn't exist - */ -int gfxop_lookup_view_get_cels(GfxState *state, int nr, int loop); - -/** * Retrieves the width and height of a cel. * * @param[in] state The state to use |