Mercurial > hg > dmlib
comparison gfxconv.c @ 429:e2f8c9cbc17a
Possibly fix 24bit PCX output.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 03 Nov 2012 11:13:33 +0200 |
parents | 983c557f2fbf |
children | 77fae3e4e4d3 |
comparison
equal
deleted
inserted
replaced
428:983c557f2fbf | 429:e2f8c9cbc17a |
---|---|
893 | 893 |
894 BOOL dmWritePCXRow(void *cbdata, Uint8 *row, size_t len) | 894 BOOL dmWritePCXRow(void *cbdata, Uint8 *row, size_t len) |
895 { | 895 { |
896 DMPCXData *pcx = (DMPCXData *) cbdata; | 896 DMPCXData *pcx = (DMPCXData *) cbdata; |
897 int plane; | 897 int plane; |
898 size_t soffs = 0; | |
899 | 898 |
900 for (plane = 0; plane < pcx->header->nplanes; plane++) | 899 for (plane = 0; plane < pcx->header->nplanes; plane++) |
901 { | 900 { |
901 size_t soffs = 0; | |
902 Uint8 data = dmPCXGetByte(row, len, soffs++), | 902 Uint8 data = dmPCXGetByte(row, len, soffs++), |
903 count = 1; | 903 count = 1; |
904 | 904 |
905 pcx->bufOffs = 0; | 905 pcx->bufOffs = 0; |
906 | 906 |