Mercurial > hg > dmlib
comparison tools/lib64gfx.c @ 1715:c0c6fd8b288a
Use dmGenericRLEOutputRun().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 06 Jun 2018 14:33:30 +0300 |
parents | 0a9110b4d036 |
children | 9731b0bdec64 |
comparison
equal
deleted
inserted
replaced
1714:95317672ff00 | 1715:c0c6fd8b288a |
---|---|
446 count = data & cfg->rleCountMask; | 446 count = data & cfg->rleCountMask; |
447 data = tmp1; | 447 data = tmp1; |
448 } | 448 } |
449 } | 449 } |
450 | 450 |
451 while (count--) | 451 if ((res = dmGenericRLEOutputRun(dst, cfg, data, count)) != DMERR_OK) |
452 { | 452 goto out; |
453 if (!dmGrowBufPutU8(dst, data)) | |
454 { | |
455 res = DMERR_MALLOC; | |
456 goto out; | |
457 } | |
458 } | |
459 } | 453 } |
460 | 454 |
461 res = DMERR_OK; | 455 res = DMERR_OK; |
462 | 456 |
463 out: | 457 out: |