From 899ad6bebe5018e85f1afdb9a7d01112d2de3736 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 10 Sep 2002 15:13:12 +0000 Subject: [PATCH] use the correct palette when writing out screen shots --- libs/video/renderer/sw/screen.c | 2 +- libs/video/renderer/sw32/screen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/video/renderer/sw/screen.c b/libs/video/renderer/sw/screen.c index 1d4ce53c8..fdd88ad4c 100644 --- a/libs/video/renderer/sw/screen.c +++ b/libs/video/renderer/sw/screen.c @@ -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); diff --git a/libs/video/renderer/sw32/screen.c b/libs/video/renderer/sw32/screen.c index a82fb67d9..36c3a6b1f 100644 --- a/libs/video/renderer/sw32/screen.c +++ b/libs/video/renderer/sw32/screen.c @@ -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");