#15797 closed defect (fixed)

M4: RIDDLE: Wrong palette for inventory etc.

Reported by: eriktorbjorn Owned by: Strangerke
Priority: normal Component: Engine: M4
Version: Keywords:
Cc: Game: Riddle of Master Lu

Description (last modified by eriktorbjorn)

This is a known bug, but I'm filing it anyway so it doesn't get lost. The palette for the inventory and some other GUI elements is tinted blue in a way the original isn't.

This is what it looks like in DOSBox:


This is what it looks like in ScummVM:


Attachments (3)

riddle_000.png (120.3 KB ) - added by eriktorbjorn 14 months ago.
scummvm-riddle-1-00000.png (119.7 KB ) - added by eriktorbjorn 14 months ago.
scummvm-riddle-00001.png (237.5 KB ) - added by eriktorbjorn 11 months ago.

Download all attachments as: .zip

Change History (9)

by eriktorbjorn, 14 months ago

Attachment: riddle_000.png added

by eriktorbjorn, 14 months ago

Attachment: scummvm-riddle-1-00000.png added

comment:1 by eriktorbjorn, 14 months ago

Description: modified (diff)

comment:2 by Random-Chain, 12 months ago

Still happens on Debian daily build 480f3405, with the English version.

by eriktorbjorn, 11 months ago

Attachment: scummvm-riddle-00001.png added

comment:3 by eriktorbjorn, 11 months ago

I think it may simply be that we're setting up the wrong palette in engines/m4/riddle/gui/interface.cpp, the Interface::set_interface_palette() function. I tried capturing what palette DOSBox got (so it may be slightly off), and ended up with this instead:

	gr_pal_set_RGB8(&myPalette[0], 0, 0, 0);
	gr_pal_set_RGB8(&myPalette[1], 0, 0, 0);
	gr_pal_set_RGB8(&myPalette[2], 36, 36, 36);
	gr_pal_set_RGB8(&myPalette[3], 69, 73, 69);
	gr_pal_set_RGB8(&myPalette[4], 101, 105, 101);
	gr_pal_set_RGB8(&myPalette[5], 130, 134, 130);
	gr_pal_set_RGB8(&myPalette[6], 162, 170, 162);
	gr_pal_set_RGB8(&myPalette[7], 199, 215, 207);
	gr_pal_set_RGB8(&myPalette[8], 235, 247, 231);
	gr_pal_set_RGB8(&myPalette[9], 130, 101, 60);
	gr_pal_set_RGB8(&myPalette[10], 142, 113, 73);
	gr_pal_set_RGB8(&myPalette[11], 154, 125, 89);
	gr_pal_set_RGB8(&myPalette[12], 166, 142, 105);
	gr_pal_set_RGB8(&myPalette[13], 174, 130, 113);
	gr_pal_set_RGB8(&myPalette[14], 199, 154, 130);
	gr_pal_set_RGB8(&myPalette[15], 227, 182, 142);
	gr_pal_set_RGB8(&myPalette[16], 255, 215, 158);
	gr_pal_set_RGB8(&myPalette[17], 97, 24, 36);
	gr_pal_set_RGB8(&myPalette[18], 81, 16, 24);
	gr_pal_set_RGB8(&myPalette[19], 69, 8, 16);
	gr_pal_set_RGB8(&myPalette[20], 56, 4, 12);

Which produced the following screenshot:


Which still isn't quite right. The "HANDLING STICK" text is still drawn in the wrong color. But it's a lot closer, at least.

comment:4 by Strangerke, 11 months ago

Partially fixed in commit 7fcdfc21ea5d63eca2e0bbbb905d1a24ba378b16

But the text is similarly too dark

comment:5 by Strangerke <arnaud.boutonne@…>, 11 months ago

In 357726ec:

M4: RIDDLE: Fix colors in TextField::draw(). That should finally fix bug #15797

comment:6 by Strangerke, 11 months ago

Owner: set to Strangerke
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.