Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CEL* Cel2ANIM::getCEL(int frame, CEL* cel, bool){
- int didx = pointers[frame];
- int nbytes = 0;
- int total = width*height;
- while(didx < pointers[frame+1]-10){
- if((data[didx] & 0xFF) < 128){
- total-= data[didx++] & 0xFF;
- continue;
- }
- if((data[didx] & 0xFF) > 190){
- nbytes = 256 - (data[didx++] & 0xFF);
- for(int i = 0; i < nbytes; i++)
- cel->data[total--] = data[didx++] & 0xFF;
- continue;
- }
- nbytes = 191 - (data[didx++] & 0xFF);
- for(int i = 0; i < nbytes; i++)
- cel->data[total--] = data[didx] & 0xFF;
- didx++;
- }
- return cel;
- }
Add Comment
Please, Sign In to add comment