aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/operations.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-10-25 22:33:08 +0000
committerFilippos Karapetis2009-10-25 22:33:08 +0000
commitb5feeb60b64a62434ace4f316b51aa7849b2702e (patch)
tree42864894b6604939fb6fa42bfed3a7f49884bfc5 /engines/sci/gfx/operations.cpp
parent1a4b61739832a1f1d597b9c56e67dd8b80b32f76 (diff)
downloadscummvm-rg350-b5feeb60b64a62434ace4f316b51aa7849b2702e.tar.gz
scummvm-rg350-b5feeb60b64a62434ace4f316b51aa7849b2702e.tar.bz2
scummvm-rg350-b5feeb60b64a62434ace4f316b51aa7849b2702e.zip
Moved the cel count calculation to the new graphics code
svn-id: r45379
Diffstat (limited to 'engines/sci/gfx/operations.cpp')
-rw-r--r--engines/sci/gfx/operations.cpp16
1 files changed, 0 insertions, 16 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;