MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / DECODE_BRUN

Function DECODE_BRUN

src/Engine/Flc.cpp:271–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269} /* SS2 */
270
271void DECODE_BRUN()
272{ Uint8 *pSrc, *pDst, *pTmpDst, Fill;
273 Sint8 CountData;
274 int HeightCount, PacketsCount;
275
276 HeightCount=flc.HeaderHeight;
277 pSrc=flc.pChunk+6;
278 pDst=(Uint8*)flc.mainscreen->pixels + flc.offset;
279 while(HeightCount--) {
280 pTmpDst=pDst;
281 PacketsCount=*(pSrc++);
282 while(PacketsCount--) {
283 CountData=*(pSrc++);
284 if(CountData>0) {
285 Fill=*(pSrc++);
286 while(CountData--) {
287 *(pTmpDst++)=Fill;
288 }
289 } else {
290 if(CountData<0) {
291 CountData=(0x100-CountData);
292 while(CountData--) {
293 *(pTmpDst++)=*(pSrc++);
294 }
295 }
296 }
297 }
298 pDst+=flc.mainscreen->pitch;
299 }
300} /* DECODE_BRUN */
301
302
303void DECODE_LC()

Callers 1

FlcDoOneFrameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected