diff options
author | Filippos Karapetis | 2009-10-22 05:41:50 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-10-22 05:41:50 +0000 |
commit | 1f4ad52c61e2dbaca95a99bfcf20f4c298fdd41c (patch) | |
tree | 43138827b37d84177bd25426df4467478935c48c /engines/sci/gfx | |
parent | 3f3353c520341ec0813b165be6ba1accf87d6f3d (diff) | |
download | scummvm-rg350-1f4ad52c61e2dbaca95a99bfcf20f4c298fdd41c.tar.gz scummvm-rg350-1f4ad52c61e2dbaca95a99bfcf20f4c298fdd41c.tar.bz2 scummvm-rg350-1f4ad52c61e2dbaca95a99bfcf20f4c298fdd41c.zip |
Moved the view loop counting code in the new GUI
svn-id: r45322
Diffstat (limited to 'engines/sci/gfx')
-rw-r--r-- | engines/sci/gfx/operations.cpp | 13 | ||||
-rw-r--r-- | engines/sci/gfx/operations.h | 9 |
2 files changed, 0 insertions, 22 deletions
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp index 1c5f6a32bc..2f9930fc68 100644 --- a/engines/sci/gfx/operations.cpp +++ b/engines/sci/gfx/operations.cpp @@ -1300,19 +1300,6 @@ sci_event_t gfxop_get_event(GfxState *state, unsigned int mask) { // View operations -int gfxop_lookup_view_get_loops(GfxState *state, int nr) { - int loop = 0, cel = 0; - gfxr_view_t *view = NULL; - - view = state->gfxResMan->getView(nr, &loop, &cel, 0); - - if (!view) { - error("[GFX] Attempt to retrieve number of loops from invalid view %d", nr); - } - - return view->loops_nr; -} - int gfxop_lookup_view_get_cels(GfxState *state, int nr, int loop) { int real_loop = loop, cel = 0; gfxr_view_t *view = NULL; diff --git a/engines/sci/gfx/operations.h b/engines/sci/gfx/operations.h index 2ae5bf80d6..6359985731 100644 --- a/engines/sci/gfx/operations.h +++ b/engines/sci/gfx/operations.h @@ -359,15 +359,6 @@ sci_event_t gfxop_get_event(GfxState *state, unsigned int mask); /** @{ */ /** - * Determines the number of loops associated with a view. - * - * @param[in] state The state to use - * @param[in] nr Number of the view to investigate - * @return The number of loops, or GFX_ERROR if the view didn't exist - */ -int gfxop_lookup_view_get_loops(GfxState *state, int nr); - -/** * Determines the number of cels associated stored in a loop. * * @param[in] state The state to look up in |