diff --git a/configuration.c b/configuration.c index 020302be65..a95e8708a8 100644 --- a/configuration.c +++ b/configuration.c @@ -1242,6 +1242,7 @@ static struct config_bool_setting *populate_settings_bool(settings_t *settings, SETTING_BOOL("video_vsync", &settings->bools.video_vsync, true, vsync, false); SETTING_BOOL("video_hard_sync", &settings->bools.video_hard_sync, true, hard_sync, false); SETTING_BOOL("video_black_frame_insertion", &settings->bools.video_black_frame_insertion, true, black_frame_insertion, false); + SETTING_BOOL("CRT_Switch_Resolution", &settings->bools.CRT_Switch_Resolution, true, CRT_Switch_Resolution, false); //ben SETTING_BOOL("video_disable_composition", &settings->bools.video_disable_composition, true, disable_composition, false); SETTING_BOOL("pause_nonactive", &settings->bools.pause_nonactive, true, pause_nonactive, false); SETTING_BOOL("video_gpu_screenshot", &settings->bools.video_gpu_screenshot, true, gpu_screenshot, false); @@ -1485,6 +1486,7 @@ static struct config_uint_setting *populate_settings_uint(settings_t *settings, #endif SETTING_UINT("audio_out_rate", &settings->uints.audio_out_rate, true, out_rate, false); SETTING_UINT("custom_viewport_width", &settings->video_viewport_custom.width, false, 0 /* TODO */, false); + SETTING_UINT("CRT_Switch_Resolution_super", &settings->uints.CRT_Switch_Resolution_super, true, CRT_Switch_Resolution_super, false);//ben SETTING_UINT("custom_viewport_height", &settings->video_viewport_custom.height, false, 0 /* TODO */, false); SETTING_UINT("custom_viewport_x", (unsigned*)&settings->video_viewport_custom.x, false, 0 /* TODO */, false); SETTING_UINT("custom_viewport_y", (unsigned*)&settings->video_viewport_custom.y, false, 0 /* TODO */, false); diff --git a/configuration.h b/configuration.h index 2f3e01eeb1..a0009eae00 100644 --- a/configuration.h +++ b/configuration.h @@ -95,6 +95,7 @@ typedef struct settings bool video_statistics_show; bool video_framecount_show; bool video_msg_bgcolor_enable; + bool CRT_Switch_Resolution; //ben /* Audio */ bool audio_enable; @@ -333,6 +334,7 @@ typedef struct settings unsigned video_window_x; unsigned video_window_y; unsigned video_window_opacity; + unsigned CRT_Switch_Resolution_super; //ben unsigned video_monitor_index; unsigned video_fullscreen_x; unsigned video_fullscreen_y;