Mercurial > hg > dmlib
comparison tools/lib64gfx.c @ 1820:bea67833b9fa
Oops, need to deconstify the "count" argument of dmEncodeGenericRLESequence() as we now modify it inside.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 22 Jun 2018 09:59:40 +0300 |
parents | 7bafe5f0998d |
children | ee2383d1a21e |
comparison
equal
deleted
inserted
replaced
1819:c12bd223000e | 1820:bea67833b9fa |
---|---|
547 | 547 |
548 return dmDecodeGenericRLE(dst, src, cfg); | 548 return dmDecodeGenericRLE(dst, src, cfg); |
549 } | 549 } |
550 | 550 |
551 | 551 |
552 int dmEncodeGenericRLESequence(DMGrowBuf *dst, const Uint8 data, const unsigned int count, const DMCompParams *cfg) | 552 int dmEncodeGenericRLESequence(DMGrowBuf *dst, const Uint8 data, unsigned int count, const DMCompParams *cfg) |
553 { | 553 { |
554 BOOL copyOnly = FALSE; | 554 BOOL copyOnly = FALSE; |
555 int res; | 555 int res; |
556 | 556 |
557 switch (cfg->type) | 557 switch (cfg->type) |