[Scummvm-tracker] [ScummVM :: Bugs] #15797: M4: RIDDLE: Wrong palette for inventory etc.

ScummVM :: Bugs trac at scummvm.org
Fri Jun 6 08:37:27 UTC 2025


#15797: M4: RIDDLE: Wrong palette for inventory etc.
-------------------------+----------------------------------
Reporter:  eriktorbjorn  |       Owner:  (none)
    Type:  defect        |      Status:  new
Priority:  normal        |   Component:  Engine: M4
 Version:                |  Resolution:
Keywords:                |        Game:  Riddle of Master Lu
-------------------------+----------------------------------
Comment (by eriktorbjorn):

 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:

 [[Image(scummvm-riddle-00001.png)]]

 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.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/15797#comment:3>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list