image-source: Set default size of color source to canvas size

This commit is contained in:
Clayton Groeneveld 2019-03-27 21:48:05 -05:00
parent 29a1a97392
commit 46c5780a77

View File

@ -99,9 +99,12 @@ static uint32_t color_source_getheight(void *data)
static void color_source_defaults(obs_data_t *settings)
{
struct obs_video_info ovi;
obs_get_video_info(&ovi);
obs_data_set_default_int(settings, "color", 0xFFFFFFFF);
obs_data_set_default_int(settings, "width", 400);
obs_data_set_default_int(settings, "height", 400);
obs_data_set_default_int(settings, "width", ovi.base_width);
obs_data_set_default_int(settings, "height", ovi.base_height);
}
struct obs_source_info color_source_info = {