Mercurial > hg > dmlib
comparison tools/lib64gfx.c @ 1485:06a9c16601d6
Oops. Fix dmC64EncodeBMP() to add loading address to total data size.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 11 May 2018 04:23:47 +0300 |
parents | 1e7f7489d3e0 |
children | bc13af8954d7 |
comparison
equal
deleted
inserted
replaced
1484:a0166c4050be | 1485:06a9c16601d6 |
---|---|
1821 | 1821 |
1822 memmove(buf->data + 2, buf->data, buf->len); | 1822 memmove(buf->data + 2, buf->data, buf->len); |
1823 | 1823 |
1824 buf->data[0] = DM_GET_ADDR_LO(fmt->addr); | 1824 buf->data[0] = DM_GET_ADDR_LO(fmt->addr); |
1825 buf->data[1] = DM_GET_ADDR_HI(fmt->addr); | 1825 buf->data[1] = DM_GET_ADDR_HI(fmt->addr); |
1826 buf->len += 2; | |
1826 | 1827 |
1827 return DMERR_OK; | 1828 return DMERR_OK; |
1828 | 1829 |
1829 err: | 1830 err: |
1830 dmGrowBufFree(buf); | 1831 dmGrowBufFree(buf); |