Hook up CGA composite controls to rest of the emulator
This commit is contained in:
32
src/config.c
32
src/config.c
@@ -473,6 +473,12 @@ load_video(void)
|
||||
show_second_monitors = !!ini_section_get_int(cat, "show_second_monitors", 1);
|
||||
video_fullscreen_scale_maximized = !!ini_section_get_int(cat, "video_fullscreen_scale_maximized", 0);
|
||||
|
||||
vid_cga_comp_brightness = ini_section_get_int(cat, "vid_cga_comp_brightness", 0);
|
||||
vid_cga_comp_sharpness = ini_section_get_int(cat, "vid_cga_comp_sharpness", 0);
|
||||
vid_cga_comp_contrast = ini_section_get_int(cat, "vid_cga_comp_contrast", 100);
|
||||
vid_cga_comp_hue = ini_section_get_int(cat, "vid_cga_comp_hue", 0);
|
||||
vid_cga_comp_saturation = ini_section_get_int(cat, "vid_cga_comp_saturation", 100);
|
||||
|
||||
// TODO
|
||||
for (uint8_t i = 1; i < GFXCARD_MAX; i ++) {
|
||||
p = ini_section_get_string(cat, "gfxcard_2", NULL);
|
||||
@@ -2451,6 +2457,32 @@ save_video(void)
|
||||
ini_section_set_string(cat, "gfxcard",
|
||||
video_get_internal_name(gfxcard[0]));
|
||||
|
||||
|
||||
if (vid_cga_comp_brightness)
|
||||
ini_section_set_int(cat, "vid_cga_comp_brightness", vid_cga_comp_brightness);
|
||||
else
|
||||
ini_section_delete_var(cat, "vid_cga_comp_brightness");
|
||||
|
||||
if (vid_cga_comp_sharpness)
|
||||
ini_section_set_int(cat, "vid_cga_comp_sharpness", vid_cga_comp_sharpness);
|
||||
else
|
||||
ini_section_delete_var(cat, "vid_cga_comp_sharpness");
|
||||
|
||||
if (vid_cga_comp_contrast != 100)
|
||||
ini_section_set_int(cat, "vid_cga_comp_contrast", vid_cga_comp_contrast);
|
||||
else
|
||||
ini_section_delete_var(cat, "vid_cga_comp_contrast");
|
||||
|
||||
if (vid_cga_comp_hue)
|
||||
ini_section_set_int(cat, "vid_cga_comp_hue", vid_cga_comp_hue);
|
||||
else
|
||||
ini_section_delete_var(cat, "vid_cga_comp_hue");
|
||||
|
||||
if (vid_cga_comp_saturation != 100)
|
||||
ini_section_set_int(cat, "vid_cga_comp_saturation", vid_cga_comp_saturation);
|
||||
else
|
||||
ini_section_delete_var(cat, "vid_cga_comp_saturation");
|
||||
|
||||
if (voodoo_enabled == 0)
|
||||
ini_section_delete_var(cat, "voodoo");
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user