Remove the "color schemes".
This commit is contained in:
parent
3818e03e55
commit
4e5f796d6a
2
main.c
2
main.c
@ -46,7 +46,6 @@ int gui_get_key_Running;
|
||||
int gui_get_key_key;
|
||||
|
||||
int ws_videoEnhancementType=0;
|
||||
int ws_colourScheme=COLOUR_SCHEME_DEFAULT;
|
||||
int sram_path_explicit = 0;
|
||||
int ieep_path_explicit = 0;
|
||||
|
||||
@ -196,7 +195,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
}
|
||||
|
||||
ws_set_colour_scheme(ws_colourScheme);
|
||||
ws_reset();
|
||||
|
||||
ws_emulate();
|
||||
|
||||
124
source/gpu.c
124
source/gpu.c
@ -66,86 +66,30 @@ uint8_t ws_gpu_scanline=0;
|
||||
int16_t ws_palette[16*4];
|
||||
int8_t ws_paletteColors[8];
|
||||
int16_t wsc_palette[16*16];
|
||||
int16_t ws_shades[16];
|
||||
|
||||
|
||||
// white
|
||||
#define SHADE_COLOR_RED 1.00
|
||||
#define SHADE_COLOR_GREEN 1.00
|
||||
#define SHADE_COLOR_BLUE 1.00
|
||||
#define SHADE_COLOR_RED 1.00
|
||||
#define SHADE_COLOR_GREEN 1.00
|
||||
#define SHADE_COLOR_BLUE 1.00
|
||||
|
||||
int16_t ws_colour_scheme_default[16]=
|
||||
{
|
||||
RGB555(SHADE_COLOR_RED*30,SHADE_COLOR_GREEN*30,SHADE_COLOR_BLUE*30),
|
||||
RGB555(SHADE_COLOR_RED*28,SHADE_COLOR_GREEN*28,SHADE_COLOR_BLUE*28),
|
||||
RGB555(SHADE_COLOR_RED*26,SHADE_COLOR_GREEN*26,SHADE_COLOR_BLUE*26),
|
||||
RGB555(SHADE_COLOR_RED*24,SHADE_COLOR_GREEN*24,SHADE_COLOR_BLUE*24),
|
||||
RGB555(SHADE_COLOR_RED*22,SHADE_COLOR_GREEN*22,SHADE_COLOR_BLUE*22),
|
||||
RGB555(SHADE_COLOR_RED*20,SHADE_COLOR_GREEN*20,SHADE_COLOR_BLUE*20),
|
||||
RGB555(SHADE_COLOR_RED*18,SHADE_COLOR_GREEN*18,SHADE_COLOR_BLUE*18),
|
||||
RGB555(SHADE_COLOR_RED*16,SHADE_COLOR_GREEN*16,SHADE_COLOR_BLUE*16),
|
||||
RGB555(SHADE_COLOR_RED*14,SHADE_COLOR_GREEN*14,SHADE_COLOR_BLUE*14),
|
||||
RGB555(SHADE_COLOR_RED*12,SHADE_COLOR_GREEN*12,SHADE_COLOR_BLUE*12),
|
||||
RGB555(SHADE_COLOR_RED*10,SHADE_COLOR_GREEN*10,SHADE_COLOR_BLUE*10),
|
||||
RGB555(SHADE_COLOR_RED*8,SHADE_COLOR_GREEN*8,SHADE_COLOR_BLUE*8),
|
||||
RGB555(SHADE_COLOR_RED*6,SHADE_COLOR_GREEN*6,SHADE_COLOR_BLUE*6),
|
||||
RGB555(SHADE_COLOR_RED*4,SHADE_COLOR_GREEN*4,SHADE_COLOR_BLUE*4),
|
||||
RGB555(SHADE_COLOR_RED*2,SHADE_COLOR_GREEN*2,SHADE_COLOR_BLUE*2),
|
||||
RGB555(SHADE_COLOR_RED*0,SHADE_COLOR_GREEN*0,SHADE_COLOR_BLUE*0)
|
||||
};
|
||||
// green
|
||||
#undef SHADE_COLOR_RED
|
||||
#undef SHADE_COLOR_GREEN
|
||||
#undef SHADE_COLOR_BLUE
|
||||
#define SHADE_COLOR_RED 0.20
|
||||
#define SHADE_COLOR_GREEN 0.90
|
||||
#define SHADE_COLOR_BLUE 0.20
|
||||
|
||||
int16_t ws_colour_scheme_green[16]=
|
||||
{
|
||||
RGB555(SHADE_COLOR_RED*30,SHADE_COLOR_GREEN*30,SHADE_COLOR_BLUE*30),
|
||||
RGB555(SHADE_COLOR_RED*28,SHADE_COLOR_GREEN*28,SHADE_COLOR_BLUE*28),
|
||||
RGB555(SHADE_COLOR_RED*26,SHADE_COLOR_GREEN*26,SHADE_COLOR_BLUE*26),
|
||||
RGB555(SHADE_COLOR_RED*24,SHADE_COLOR_GREEN*24,SHADE_COLOR_BLUE*24),
|
||||
RGB555(SHADE_COLOR_RED*22,SHADE_COLOR_GREEN*22,SHADE_COLOR_BLUE*22),
|
||||
RGB555(SHADE_COLOR_RED*20,SHADE_COLOR_GREEN*20,SHADE_COLOR_BLUE*20),
|
||||
RGB555(SHADE_COLOR_RED*18,SHADE_COLOR_GREEN*18,SHADE_COLOR_BLUE*18),
|
||||
RGB555(SHADE_COLOR_RED*16,SHADE_COLOR_GREEN*16,SHADE_COLOR_BLUE*16),
|
||||
RGB555(SHADE_COLOR_RED*14,SHADE_COLOR_GREEN*14,SHADE_COLOR_BLUE*14),
|
||||
RGB555(SHADE_COLOR_RED*12,SHADE_COLOR_GREEN*12,SHADE_COLOR_BLUE*12),
|
||||
RGB555(SHADE_COLOR_RED*10,SHADE_COLOR_GREEN*10,SHADE_COLOR_BLUE*10),
|
||||
RGB555(SHADE_COLOR_RED*8,SHADE_COLOR_GREEN*8,SHADE_COLOR_BLUE*8),
|
||||
RGB555(SHADE_COLOR_RED*6,SHADE_COLOR_GREEN*6,SHADE_COLOR_BLUE*6),
|
||||
RGB555(SHADE_COLOR_RED*4,SHADE_COLOR_GREEN*4,SHADE_COLOR_BLUE*4),
|
||||
RGB555(SHADE_COLOR_RED*2,SHADE_COLOR_GREEN*2,SHADE_COLOR_BLUE*2),
|
||||
RGB555(SHADE_COLOR_RED*0,SHADE_COLOR_GREEN*0,SHADE_COLOR_BLUE*0)
|
||||
};
|
||||
// amber
|
||||
#undef SHADE_COLOR_RED
|
||||
#undef SHADE_COLOR_GREEN
|
||||
#undef SHADE_COLOR_BLUE
|
||||
#define SHADE_COLOR_RED 1.00
|
||||
#define SHADE_COLOR_GREEN 0.61
|
||||
#define SHADE_COLOR_BLUE 0.00
|
||||
|
||||
int16_t ws_colour_scheme_amber[16]=
|
||||
{
|
||||
RGB555(SHADE_COLOR_RED*30,SHADE_COLOR_GREEN*30,SHADE_COLOR_BLUE*30),
|
||||
RGB555(SHADE_COLOR_RED*28,SHADE_COLOR_GREEN*28,SHADE_COLOR_BLUE*28),
|
||||
RGB555(SHADE_COLOR_RED*26,SHADE_COLOR_GREEN*26,SHADE_COLOR_BLUE*26),
|
||||
RGB555(SHADE_COLOR_RED*24,SHADE_COLOR_GREEN*24,SHADE_COLOR_BLUE*24),
|
||||
RGB555(SHADE_COLOR_RED*22,SHADE_COLOR_GREEN*22,SHADE_COLOR_BLUE*22),
|
||||
RGB555(SHADE_COLOR_RED*20,SHADE_COLOR_GREEN*20,SHADE_COLOR_BLUE*20),
|
||||
RGB555(SHADE_COLOR_RED*18,SHADE_COLOR_GREEN*18,SHADE_COLOR_BLUE*18),
|
||||
RGB555(SHADE_COLOR_RED*16,SHADE_COLOR_GREEN*16,SHADE_COLOR_BLUE*16),
|
||||
RGB555(SHADE_COLOR_RED*14,SHADE_COLOR_GREEN*14,SHADE_COLOR_BLUE*14),
|
||||
RGB555(SHADE_COLOR_RED*12,SHADE_COLOR_GREEN*12,SHADE_COLOR_BLUE*12),
|
||||
RGB555(SHADE_COLOR_RED*10,SHADE_COLOR_GREEN*10,SHADE_COLOR_BLUE*10),
|
||||
RGB555(SHADE_COLOR_RED*8,SHADE_COLOR_GREEN*8,SHADE_COLOR_BLUE*8),
|
||||
RGB555(SHADE_COLOR_RED*6,SHADE_COLOR_GREEN*6,SHADE_COLOR_BLUE*6),
|
||||
RGB555(SHADE_COLOR_RED*4,SHADE_COLOR_GREEN*4,SHADE_COLOR_BLUE*4),
|
||||
RGB555(SHADE_COLOR_RED*2,SHADE_COLOR_GREEN*2,SHADE_COLOR_BLUE*2),
|
||||
RGB555(SHADE_COLOR_RED*0,SHADE_COLOR_GREEN*0,SHADE_COLOR_BLUE*0)
|
||||
int16_t ws_shades[16] = {
|
||||
RGB555(SHADE_COLOR_RED * 30, SHADE_COLOR_GREEN * 30, SHADE_COLOR_BLUE * 30),
|
||||
RGB555(SHADE_COLOR_RED * 28, SHADE_COLOR_GREEN * 28, SHADE_COLOR_BLUE * 28),
|
||||
RGB555(SHADE_COLOR_RED * 26, SHADE_COLOR_GREEN * 26, SHADE_COLOR_BLUE * 26),
|
||||
RGB555(SHADE_COLOR_RED * 24, SHADE_COLOR_GREEN * 24, SHADE_COLOR_BLUE * 24),
|
||||
RGB555(SHADE_COLOR_RED * 22, SHADE_COLOR_GREEN * 22, SHADE_COLOR_BLUE * 22),
|
||||
RGB555(SHADE_COLOR_RED * 20, SHADE_COLOR_GREEN * 20, SHADE_COLOR_BLUE * 20),
|
||||
RGB555(SHADE_COLOR_RED * 18, SHADE_COLOR_GREEN * 18, SHADE_COLOR_BLUE * 18),
|
||||
RGB555(SHADE_COLOR_RED * 16, SHADE_COLOR_GREEN * 16, SHADE_COLOR_BLUE * 16),
|
||||
RGB555(SHADE_COLOR_RED * 14, SHADE_COLOR_GREEN * 14, SHADE_COLOR_BLUE * 14),
|
||||
RGB555(SHADE_COLOR_RED * 12, SHADE_COLOR_GREEN * 12, SHADE_COLOR_BLUE * 12),
|
||||
RGB555(SHADE_COLOR_RED * 10, SHADE_COLOR_GREEN * 10, SHADE_COLOR_BLUE * 10),
|
||||
RGB555(SHADE_COLOR_RED * 8, SHADE_COLOR_GREEN * 8, SHADE_COLOR_BLUE * 8),
|
||||
RGB555(SHADE_COLOR_RED * 6, SHADE_COLOR_GREEN * 6, SHADE_COLOR_BLUE * 6),
|
||||
RGB555(SHADE_COLOR_RED * 4, SHADE_COLOR_GREEN * 4, SHADE_COLOR_BLUE * 4),
|
||||
RGB555(SHADE_COLOR_RED * 2, SHADE_COLOR_GREEN * 2, SHADE_COLOR_BLUE * 2),
|
||||
RGB555(SHADE_COLOR_RED * 0, SHADE_COLOR_GREEN * 0, SHADE_COLOR_BLUE * 0)
|
||||
};
|
||||
|
||||
uint8_t *ws_tile_cache;
|
||||
@ -157,34 +101,6 @@ uint8_t *wsc_hflipped_tile_cache;
|
||||
uint8_t *ws_modified_tile;
|
||||
uint8_t *wsc_modified_tile;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ws_gpu_set_colour_scheme(int scheme)
|
||||
{
|
||||
switch (scheme)
|
||||
{
|
||||
case COLOUR_SCHEME_DEFAULT:
|
||||
memcpy(ws_shades,ws_colour_scheme_default,16*sizeof(int16_t));
|
||||
break;
|
||||
|
||||
case COLOUR_SCHEME_AMBER :
|
||||
memcpy(ws_shades,ws_colour_scheme_amber,16*sizeof(int16_t));
|
||||
break;
|
||||
|
||||
case COLOUR_SCHEME_GREEN :
|
||||
memcpy(ws_shades,ws_colour_scheme_green,16*sizeof(int16_t));
|
||||
break;
|
||||
}
|
||||
}
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -37,7 +37,6 @@ void ws_gpu_changeVideoMode(uint8_t value);
|
||||
void ws_gpu_write_byte(uint32_t offset, uint8_t value);
|
||||
int ws_gpu_port_write(uint32_t port, uint8_t value);
|
||||
uint8_t ws_gpu_port_read(uint8_t port);
|
||||
void ws_gpu_set_colour_scheme(int scheme);
|
||||
void ws_gpu_changeVideoMode(uint8_t value);
|
||||
void ws_gpu_clearCache(void);
|
||||
|
||||
|
||||
@ -25,7 +25,6 @@ extern uint32_t ws_cyclesByLine;
|
||||
|
||||
int ws_init(char *rompath);
|
||||
int ws_rotated(void);
|
||||
void ws_set_colour_scheme(int scheme);
|
||||
void ws_set_system(wssystem_t system);
|
||||
wssystem_t ws_get_system();
|
||||
void ws_reset(void);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user