Mercurial > hg > dmlib
comparison tools/libgfx.c @ 2055:6c6a4ea67540
Make two functions static and one not.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 04 Dec 2018 10:33:06 +0200 |
parents | 1a032298adb8 |
children | 02fa60b27af5 |
comparison
equal
deleted
inserted
replaced
2054:1a032298adb8 | 2055:6c6a4ea67540 |
---|---|
1600 | 1600 |
1601 return DMERR_OK; | 1601 return DMERR_OK; |
1602 } | 1602 } |
1603 | 1603 |
1604 | 1604 |
1605 static BOOL dmIFFDecodeByteRun1Row(DMResource *fp, Uint8 *buf, const size_t bufLen) | 1605 BOOL dmIFFDecodeByteRun1Row(DMResource *fp, Uint8 *buf, const size_t bufLen) |
1606 { | 1606 { |
1607 size_t offs = 0; | 1607 size_t offs = 0; |
1608 do | 1608 do |
1609 { | 1609 { |
1610 Uint8 data, ucount; | 1610 Uint8 data, ucount; |
2080 DMODE_LIT, | 2080 DMODE_LIT, |
2081 DMODE_RLE, | 2081 DMODE_RLE, |
2082 }; | 2082 }; |
2083 | 2083 |
2084 | 2084 |
2085 BOOL dmIFFEncodeByteRun1LIT(DMResource *fp, | 2085 static BOOL dmIFFEncodeByteRun1LIT(DMResource *fp, |
2086 const Uint8 *buf, const size_t offs, | 2086 const Uint8 *buf, const size_t offs, |
2087 const size_t count) | 2087 const size_t count) |
2088 { | 2088 { |
2089 if (count <= 0) | 2089 if (count <= 0) |
2090 return TRUE; | 2090 return TRUE; |
2095 dmf_write_byte(fp, tmp) && | 2095 dmf_write_byte(fp, tmp) && |
2096 dmf_write_str(fp, buf + offs, count); | 2096 dmf_write_str(fp, buf + offs, count); |
2097 } | 2097 } |
2098 | 2098 |
2099 | 2099 |
2100 BOOL dmIFFEncodeByteRun1RLE(DMResource *fp, | 2100 static BOOL dmIFFEncodeByteRun1RLE(DMResource *fp, |
2101 const Uint8 *buf, const size_t offs, | 2101 const Uint8 *buf, const size_t offs, |
2102 const size_t count) | 2102 const size_t count) |
2103 { | 2103 { |
2104 if (count <= 0) | 2104 if (count <= 0) |
2105 return TRUE; | 2105 return TRUE; |