This one was my fault. The SCUMM engine has to notify the Mac window
manager whenver the palette changes, and I assumed that paletteColors
held the complete palette, when it's _currentPalette that does.
This means that the Mac window manager now gets the palette without
gamma correction, but that may not be such a bad thing. It's used for
color lookup and such, and gamma correction seems like just a
presentation detail that the window manager doesn't have to be aware of.
The idea here is to expose a much smaller part of the MacGui headers to
the SCUMM engine, but introducing a new class that simply relays calls
to the actual Mac GUI. I hope this will allow me to further untangle
things.
The plan is to eventually hide as much of the MacGui implementation as
possible from the rest of the engine, and only provide a minimal
macgui.h for it to use.