another try at it..

This commit is contained in:
Joseph Carter 2000-03-04 17:11:52 +00:00
parent 8678d1bb58
commit 27825ed5fe

View file

@ -67,11 +67,11 @@ LoadPCX (QFile *f, byte **pcx_rgb) {
Qseek (f, sizeof(pcxbuf) - 4, SEEK_SET);
count = (pcx->xmax+1) * (pcx->ymax+1);
*pcx_rgb = malloc( count * 3);
*pcx_rgb = malloc( count); // * 3);
for (y=0 ; y<=pcx->ymax ; y++)
{
pix = *pcx_rgb + 3*y*(pcx->xmax+1);
pix = *pcx_rgb + /*3**/y*(pcx->xmax+1);
for (x=0 ; x<=pcx->ymax ; )
{
dataByte = Qgetc(f);