SameBoy/SDL
Maximilian Mader 13e0b90b47
[SDL] Fix loading of the configured DMG palette
There are four options for the DMG color palette:
- Greyscale
- Lime (Game Boy)
- Olive (Pocket)
- Teal (Light)

When loading the configuration from the `prefs.bin`
the configured `dmg_palette` gets normalized by applying
`mod 3` to it, limiting the possible values to [ 0, 1, 2 ],
thus selecting the “Teal” color palette will be saved as such,
but the next time the config gets loaded it gets reset to Greyscale.
2022-01-20 19:15:08 +01:00
..
audio Minor fixes, style update 2020-05-10 22:16:49 +03:00
background.bmp Slightly improved background 2017-12-27 23:20:06 +02:00
console.c Detect missing ANSI support on Windows 2021-10-30 16:03:33 +03:00
console.h New console readline-like interface for the SDL port 2021-09-09 00:13:09 +03:00
font.c Use a slider for temperature in the SDL GUI 2021-01-31 19:17:48 +02:00
font.h Use a slider for temperature in the SDL GUI 2021-01-31 19:17:48 +02:00
gui.c Improved sanitation for save states for better security and stability 2021-10-30 16:03:13 +03:00
gui.h MGB support 2021-10-23 23:28:54 +03:00
main.c [SDL] Fix loading of the configured DMG palette 2022-01-20 19:15:08 +01:00
opengl_compat.c Include the canonical SDL2 path, which drops the SDL2/ prefix. 2019-12-10 00:56:34 -07:00
opengl_compat.h Fixing inconsistent style 2020-04-24 20:37:57 +03:00
shader.c A flag to disable OpenGL, better and more stable handling of no-OpenGL mode 2021-05-06 00:23:46 +03:00
shader.h Add accurate frame blending option 2020-03-26 20:54:18 +02:00
utils.c Allow make install under FreeDesktop 2021-02-27 14:32:07 +02:00
utils.h Allow make install under FreeDesktop 2021-02-27 14:32:07 +02:00