mirror of
https://github.com/MiSTer-devel/InputTest_MiSTer.git
synced 2026-04-19 03:04:18 +00:00
Tweak colours
This commit is contained in:
Binary file not shown.
1374
rtl/rom.hex
1374
rtl/rom.hex
File diff suppressed because it is too large
Load Diff
@@ -89,7 +89,7 @@ char button_name[BUTTON_COUNT][12] = {
|
||||
char button_x[BUTTON_COUNT] = {6, 2, 4, 4, 24, 22, 22, 20, 3, 23, 9, 13};
|
||||
char button_y[BUTTON_COUNT] = {5, 5, 6, 4, 5, 6, 4, 5, 1, 1, 5, 5};
|
||||
#define color_button_active 0xFF
|
||||
#define color_button_inactive 0b11100100
|
||||
#define color_button_inactive 0b11100000
|
||||
|
||||
char analog_offset_x[PAD_COUNT] = {1, 20};
|
||||
char analog_offset_y[PAD_COUNT] = {5, 5};
|
||||
|
||||
16
src/menu.c
16
src/menu.c
@@ -35,11 +35,13 @@
|
||||
#define menu_outline_high 0b10111111
|
||||
#define menu_outline_mid 0b10110110
|
||||
#define menu_outline_low 0b01100100
|
||||
#define menu_text 0b10110110
|
||||
#define menu_back 0x00
|
||||
|
||||
#define menu_sel_outline_high 0xFF
|
||||
#define menu_sel_outline_mid 0xFF
|
||||
#define menu_sel_outline_low 0b10111111
|
||||
#define menu_sel_outline_high 0b01011111
|
||||
#define menu_sel_outline_mid 0b00010110
|
||||
#define menu_sel_outline_low 0b00010100
|
||||
#define menu_sel_text 0xFF
|
||||
#define menu_sel_back 0b00001001
|
||||
|
||||
// Menu variables
|
||||
@@ -138,14 +140,14 @@ void menu()
|
||||
if (menu_index == m)
|
||||
{
|
||||
panel_shaded(menu_tx + 1, ty, menu_bx - 1, ty + 2, menu_sel_outline_high, menu_sel_outline_mid, menu_sel_outline_low);
|
||||
write_string(menu_string[m], menu_sel_outline_high, menu_tx + 2, ty + 1);
|
||||
fill_bgcolor(menu_tx + 1, ty, menu_bx - 1, ty + 2, menu_sel_back);
|
||||
write_string(menu_string[m], menu_sel_text, menu_tx + 2, ty + 1);
|
||||
//fill_bgcolor(menu_tx + 1, ty, menu_bx - 1, ty + 2, menu_sel_back);
|
||||
}
|
||||
else
|
||||
{
|
||||
panel_shaded(menu_tx + 1, ty, menu_bx - 1, ty + 2, menu_outline_high, menu_outline_mid, menu_outline_low);
|
||||
write_string(menu_string[m], menu_outline_mid, menu_tx + 2, ty + 1);
|
||||
fill_bgcolor(menu_tx + 1, ty, menu_bx - 1, ty + 2, menu_back);
|
||||
write_string(menu_string[m], menu_text, menu_tx + 2, ty + 1);
|
||||
//fill_bgcolor(menu_tx + 1, ty, menu_bx - 1, ty + 2, menu_back);
|
||||
}
|
||||
ty += 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user