char Video_v6::spriteUncompressor(byte *sprBuf, int16 srcWidth, int16 srcHeight, int16 x, int16 y, int16 transp, Surface &destDesc) { if ((sprBuf[0] == 1) && (sprBuf[1] == 3)) { drawPacked(sprBuf, x, y, destDesc); return 1; } if (srcWidth & 0xC000) { warning("Playtoons Stub: srcWidth & 0xC000 == %04X", srcWidth & 0xC000); srcWidth &= 0x3FFF; } if ((sprBuf[0] == 1) && (sprBuf[1] == 2)) { if (Video_v2::spriteUncompressor(sprBuf, srcWidth, srcHeight, x, y, transp, destDesc)) return 1; Video::drawPacked(sprBuf, srcWidth, srcHeight, x, y, transp, destDesc); return 1; } warning("Urban Stub: spriteUncompressor(), sprBuf[0,1,2] = %d,%d,%d", sprBuf[0], sprBuf[1], sprBuf[2]); return 1; }
void Video::drawPackedSprite(byte *sprBuf, int16 width, int16 height, int16 x, int16 y, int16 transp, Surface &dest) { if (spriteUncompressor(sprBuf, width, height, x, y, transp, dest)) return; drawPacked(sprBuf, width, height, x, y, transp, dest); }