Merge pull request #1781 from cg2121/color-source-default-size

image-source: Set default size of color source to canvas size
This commit is contained in:
Jim 2019-04-10 17:38:51 -07:00 committed by GitHub
commit d0f52a6479
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = {