Gambatte is outputting dark colors?

Awhile back I compiled Gambatte with an edited grayscale with Nintendo’s 3DS Virtual Console palette:

static const unsigned short p016[] = { PACK15_4(0xCECEAD, 0xA5A58C, 0x6B6B52, 0x292919), PACK15_4(0xCECEAD, 0xA5A58C, 0x6B6B52, 0x292919), PACK15_4(0xCECEAD, 0xA5A58C, 0x6B6B52, 0x292919) };

However the result was a gray-pinkish image that was nothing like the expected colors. Then I had to do some random subtractions to come up with this:

static const unsigned short p016[] = { PACK15_4(0xCED9A5, 0xA5AC84, 0x6B714A, 0x292E11), PACK15_4(0xCED9A5, 0xA5AC84, 0x6B714A, 0x292E11), PACK15_4(0xCED9A5, 0xA5AC84, 0x6B714A, 0x292E11) };

Which somewhat looks closer to the expected output but is not quite exact. Anything I can do to get true colors? The idea was to get an all-purpose palette but be nicer to look at than pure black and white and I succeeded but would still like to know a way to get the correct colors.

Here’s how it should look:

Here’s how it looks:

Here’s the closest I got to make it look similar:

Seems this will be fixed by the next release, thanks dev team.

It’s the color correction that caused it btw, disabling it in core options gives true colors.

To not totally waste this thread I’m posting the general purpose palettes Nintendo has used:

3DS GRAY

static const unsigned short p016[] = { PACK15_4(0xCECEAD, 0xA5A58C, 0x6B6B52, 0x292919), PACK15_4(0xCECEAD, 0xA5A58C, 0x6B6B52, 0x292919), PACK15_4(0xCECEAD, 0xA5A58C, 0x6B6B52, 0x292919) };

3DS GREEN

static const unsigned short p016[] = { PACK15_4(0xBDFF21, 0x9CEF29, 0x5A8C42, 0x4A4A4A), PACK15_4(0xBDFF21, 0x9CEF29, 0x5A8C42, 0x4A4A4A), PACK15_4(0xBDFF21, 0x9CEF29, 0x5A8C42, 0x4A4A4A) };

Wii GRAY

static const unsigned short p016[] = { PACK15_4(0xBDBD9C, 0x8C8C73, 0x5A5A4A, 0x313119), PACK15_4(0xBDBD9C, 0x8C8C73, 0x5A5A4A, 0x313119), PACK15_4(0xBDBD9C, 0x8C8C73, 0x5A5A4A, 0x313119) };

These are taken from Kirby’s Dream Collection which has a lot of leftover info about VC, the 3DS gray one was confirmed from a raw screen capture. Maybe someone else can make use of them they are in the “RA” layout so you can easily use them if you can compile. (p016 is the default grayscale) Props to Friedslick6 for collecting the palettes originally.