mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 14:42:06 +00:00
another try at it..
This commit is contained in:
parent
8678d1bb58
commit
27825ed5fe
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue