* @brief Blit a given CEL frame to the given buffer * @param pBuff Target buffer * @param pCelBuff Cel data * @param nCel CEL frame number * @param nWidth Width of sprite */
| 43 | * @param nWidth Width of sprite |
| 44 | */ |
| 45 | void CelBlitFrame(BYTE *pBuff, BYTE *pCelBuff, int nCel, int nWidth) |
| 46 | { |
| 47 | int nDataSize; |
| 48 | BYTE *pRLEBytes; |
| 49 | |
| 50 | assert(pCelBuff != NULL); |
| 51 | assert(pBuff != NULL); |
| 52 | |
| 53 | pRLEBytes = CelGetFrame(pCelBuff, nCel, &nDataSize); |
| 54 | CelBlitSafe(pBuff, pRLEBytes, nDataSize, nWidth); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * @brief Same as CelDraw but with the option to skip parts of the top and bottom of the sprite |
no test coverage detected