Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 13 - Add TV-Link Palettes #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions common/gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,18 @@ static const uint8 palettes[SV_COLOR_SCHEME_COUNT][12] = {
0x56, 0x00, 0x00,
0x00, 0x00, 0x00,
},
{ /* SV_COLOR_SCHEME_TVLINK */
0x00, 0x00, 0x00,
0x00, 0x48, 0x55,
0x00, 0x91, 0xAA,
0xFF, 0xFF, 0xFF,
},
{ /* SV_COLOR_SCHEME_TVLINK_INVERTED */
0xFF, 0xFF, 0xFF,
0x00, 0x91, 0xAA,
0x00, 0x48, 0x55,
0x00, 0x00, 0x00,
},
};

static uint16 *palette;
Expand Down
2 changes: 2 additions & 0 deletions common/supervision.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ enum SV_COLOR {
, SV_COLOR_SCHEME_TI_83
, SV_COLOR_SCHEME_TRAVEL_WOOD
, SV_COLOR_SCHEME_VIRTUAL_BOY
, SV_COLOR_SCHEME_TVLINK
, SV_COLOR_SCHEME_TVLINK_INVERTED

, SV_COLOR_SCHEME_COUNT
};
Expand Down
2 changes: 2 additions & 0 deletions platform/libretro/libretro.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ struct sv_color_scheme sv_color_schemes[] = {
{ "ti_83", SV_COLOR_SCHEME_TI_83 },
{ "travel_wood", SV_COLOR_SCHEME_TRAVEL_WOOD },
{ "virtual_boy", SV_COLOR_SCHEME_VIRTUAL_BOY },
{ "tvlink", SV_COLOR_SCHEME_TVLINK },
{ "tvlink_inverted", SV_COLOR_SCHEME_TVLINK_INVERTED },
{ NULL, 0 },
};

Expand Down
2 changes: 2 additions & 0 deletions platform/libretro/libretro_core_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ struct retro_core_option_definition option_defs_us[] = {
{ "ti_83", "TI-83" },
{ "travel_wood", "Travel Wood" },
{ "virtual_boy", "Virtual Boy" },
{ "tvlink", "TV-Link" },
{ "tvlink_inverted", "TV-Link Inverted" },
{ NULL, NULL },
},
"default"
Expand Down