bugfix in image frames count
authorecalot <ecalot>
Sun, 20 Jun 2004 17:38:59 +0000 (17:38 +0000)
committerecalot <ecalot>
Sun, 20 Jun 2004 17:38:59 +0000 (17:38 +0000)
FP/src/res/resources.c

index cee06bb19b342b60bf3fe31a7ce8e43c74b2b391..29220dc7dd7c191c2beb1ad8a132d593ec4f6a5e 100644 (file)
@@ -67,10 +67,15 @@ tData* res_createData(int nFrames,int type) {
        /* TODO: send those lines to res_createData*/
        result=(tData*)malloc(sizeof(tData));
        
-       //switch {
-       result->type=eImages;//res_getVirtualTypeFromReal(res_getIdxType);
-       //nFrames--;
-       //}
+       switch (type) {
+               case RES_TYPE_IMG_TR_LEFT:
+               case RES_TYPE_IMG_TR_RIGHT:
+               case RES_TYPE_IMG_BL_LEFT:
+               case RES_TYPE_IMG_BL_RIGHT:
+                       result->type=eImages;//res_getVirtualTypeFromReal(res_getIdxType);
+                       nFrames--;
+                       break;
+       }
        
        result->pFrames=(void**)malloc(nFrames*sizeof(void*));
        result->frames=nFrames;