From c23b918596494b8eee920ea0a85cc603a1af5e68 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 1 Nov 2011 01:59:47 +0000 Subject: [PATCH] - Fixed: restart ccmd did not reset the palette. SVN r3307 (trunk) --- src/v_video.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/v_video.cpp b/src/v_video.cpp index 314ae22f83..db0be36968 100644 --- a/src/v_video.cpp +++ b/src/v_video.cpp @@ -1539,7 +1539,14 @@ void V_Init (bool restart) } screen = new DDummyFrameBuffer (width, height); } - + // Update screen palette when restarting + else + { + PalEntry *palette = screen->GetPalette (); + for (int i = 0; i < 256; ++i) + *palette++ = GPalette.BaseColors[i]; + screen->UpdatePalette(); + } BuildTransTable (GPalette.BaseColors); }