changeset 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
files gfxconv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gfxconv.c	Sat Nov 03 11:10:59 2012 +0200
+++ b/gfxconv.c	Sat Nov 03 11:13:33 2012 +0200
@@ -895,10 +895,10 @@
 {
     DMPCXData *pcx = (DMPCXData *) cbdata;
     int plane;
-    size_t soffs = 0;
     
     for (plane = 0; plane < pcx->header->nplanes; plane++)
     {
+        size_t soffs = 0;
         Uint8 data = dmPCXGetByte(row, len, soffs++),
               count = 1;