From 860b75d60843d811f683c1969f1b9d5d2b907d2d Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Thu, 22 Nov 2018 23:19:33 +0100 Subject: [PATCH] Load_CM5() setup colors 0,1,2,3 to see something in the thumbnail preview of layer 5 --- src/miscfileformats.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/miscfileformats.c b/src/miscfileformats.c index f80f4666..1e33e1d6 100644 --- a/src/miscfileformats.c +++ b/src/miscfileformats.c @@ -4215,7 +4215,13 @@ void Load_CM5(T_IO_Context* context) Pre_load(context, 48*6, 256, 2049, FORMAT_CM5, PIXEL_SIMPLE, 0); if (Config.Clear_palette) + { memset(context->Palette,0,sizeof(T_Palette)); + // setup colors 0,1,2,3 to see something in the thumbnail preview of layer 5 + context->Palette[1].R = 60; + context->Palette[2].B = 60; + context->Palette[3].G = 60; + } // Setup the palette (amstrad hardware palette) CPC_set_HW_palette(context->Palette + 0x40);