Paul Gilbert
1f65be27d9
GRAPHICS: Palette constants cleanup, added Palette methods to ManagedSurface
2024-06-02 10:55:01 -07:00
Paul Gilbert
80e83c1a4b
GRAPHICS: Support Graphics::Palette in PaletteManager
2024-06-01 11:38:27 -07:00
Matthew Jimenez
5219c99400
GRAPHICS: Move PaletteManager definition to a separate header
2024-03-12 12:24:00 +02:00
Torbjörn Andersson
3bc0661065
Merged the "palette manager" into the cursor manager. It was only used to
...
manage *cursor* palettes, so the name was misleading.
svn-id: r25500
2007-02-12 00:04:56 +00:00
Torbjörn Andersson
df4f95f805
Let the [cursor] palette manager handle disableCursorPalette() too, to avoid
...
cursor glitch in at least some HE games which first set a cursor palette, and
then disable it. (The disabled palette would be re-enabled after dismissing the
GUI.)
svn-id: r23081
2006-06-13 09:48:46 +00:00
Torbjörn Andersson
21a74b6f41
Cleanup.
...
svn-id: r22635
2006-05-25 20:29:17 +00:00
Torbjörn Andersson
a49c64799f
Fixed comment to make it less obvious where I copied the general structure of
...
the palette manager from.
svn-id: r22628
2006-05-25 18:31:56 +00:00
Torbjörn Andersson
d7296ae666
Make it so that if the new cursor palette to be set has zero colours, the
...
cursor palette is disabled.
Also, when replacing a cursor palette, try to re-use the old palette buffer, as
a minor optimization. (Not that these functions should need any optimization,
but it's simple and shouldn't hurt.)
svn-id: r22554
2006-05-21 13:27:18 +00:00
Torbjörn Andersson
6cdd98b617
After the GUI has finished, restore the old cursor palette (if any). For this
...
to work, cursor palette now has to be set using the new "palette manager". See
graphics/paletteman.cpp
svn-id: r22543
2006-05-20 10:59:25 +00:00