use the correct palette when writing out screen shots

This commit is contained in:
Bill Currie 2002-09-10 15:13:12 +00:00
parent ecdd537183
commit 899ad6bebe
2 changed files with 2 additions and 2 deletions

View file

@ -656,7 +656,7 @@ SCR_ScreenShot_f (void)
// save the pcx file
pcx = EncodePCX (vid.buffer, vid.width, vid.height, vid.rowbytes,
vid.palette, false, &pcx_len);
vid.basepal, false, &pcx_len);
COM_WriteFile (pcxname, pcx, pcx_len);

View file

@ -668,7 +668,7 @@ SCR_ScreenShot_f (void)
switch(r_pixbytes) {
case 1:
pcx = EncodePCX (vid.buffer, vid.width, vid.height, vid.rowbytes,
vid.palette, false, &pcx_len);
vid.basepal, false, &pcx_len);
break;
case 2:
Con_Printf("SCR_ScreenShot_f: FIXME - add 16bit support\n");