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:
commit
d0f52a6479
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user