* @brief Same as CelBlitLightTransSafe * @param pBuff Target buffer * @param pCelBuff Cel data * @param nCel CEL frame number * @param nWidth Width of sprite */
| 408 | * @param nWidth Width of sprite |
| 409 | */ |
| 410 | void CelClippedBlitLightTrans(BYTE *pBuff, BYTE *pCelBuff, int nCel, int nWidth) |
| 411 | { |
| 412 | int nDataSize; |
| 413 | BYTE *pRLEBytes; |
| 414 | |
| 415 | assert(pCelBuff != NULL); |
| 416 | |
| 417 | pRLEBytes = CelGetFrameClipped(pCelBuff, nCel, &nDataSize); |
| 418 | |
| 419 | if (cel_transparency_active) |
| 420 | CelBlitLightTransSafe(pBuff, pRLEBytes, nDataSize, nWidth); |
| 421 | else if (light_table_index) |
| 422 | CelBlitLightSafe(pBuff, pRLEBytes, nDataSize, nWidth, NULL); |
| 423 | else |
| 424 | CelBlitSafe(pBuff, pRLEBytes, nDataSize, nWidth); |
| 425 | } |
| 426 | |
| 427 | /** |
| 428 | * @brief Same as CelDrawLightRed but checks for drawing outside the buffer |
no test coverage detected