Load_CM5() setup colors 0,1,2,3 to see something in the thumbnail preview of layer 5

This commit is contained in:
Thomas Bernard 2018-11-22 23:19:33 +01:00
parent 459a23fd36
commit 860b75d608
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -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);