@@ -109,7 +109,8 @@ void OBS_content::Register(ipc::server& srv) {
109109 std::shared_ptr<ipc::collection> cls = std::make_shared<ipc::collection>(" Display" );
110110
111111 cls->register_function (std::make_shared<ipc::function>(" OBS_content_createDisplay" ,
112- std::vector<ipc::type>{ipc::type::UInt64, ipc::type::String}, OBS_content_createDisplay));
112+ std::vector<ipc::type>{ipc::type::UInt64, ipc::type::String, ipc::type::UInt32, ipc::type::UInt32,
113+ ipc::type::UInt32, ipc::type::UInt32}, OBS_content_createDisplay));
113114
114115 cls->register_function (std::make_shared<ipc::function>(" OBS_content_destroyDisplay" ,
115116 std::vector<ipc::type>{ipc::type::String}, OBS_content_destroyDisplay));
@@ -121,7 +122,9 @@ void OBS_content::Register(ipc::server& srv) {
121122 std::vector<ipc::type>{ipc::type::String}, OBS_content_getDisplayPreviewSize));
122123
123124 cls->register_function (std::make_shared<ipc::function>(" OBS_content_createSourcePreviewDisplay" ,
124- std::vector<ipc::type>{ipc::type::UInt64, ipc::type::String, ipc::type::String}, OBS_content_createSourcePreviewDisplay));
125+ std::vector<ipc::type>{ipc::type::UInt64, ipc::type::String, ipc::type::String,
126+ ipc::type::UInt32, ipc::type::UInt32, ipc::type::UInt32, ipc::type::UInt32},
127+ OBS_content_createSourcePreviewDisplay));
125128
126129 cls->register_function (std::make_shared<ipc::function>(" OBS_content_resizeDisplay" ,
127130 std::vector<ipc::type>{ipc::type::String, ipc::type::UInt32, ipc::type::UInt32}, OBS_content_resizeDisplay));
@@ -185,7 +188,9 @@ void OBS_content::OBS_content_createDisplay(void* data, const int64_t id, const
185188 return ;
186189 }
187190
188- displays.insert_or_assign (args[1 ].value_str , new OBS::Display (windowHandle));
191+ displays.insert_or_assign (args[1 ].value_str , new OBS::Display (windowHandle,
192+ args[2 ].value_union .ui32 , args[3 ].value_union .ui32 ,
193+ args[4 ].value_union .ui32 , args[5 ].value_union .ui32 ));
189194 rval.push_back (ipc::value ((uint64_t )ErrorCode::Ok));
190195 AUTO_DEBUG;
191196}
@@ -217,7 +222,9 @@ void OBS_content::OBS_content_createSourcePreviewDisplay(void* data, const int64
217222 std::cout << " Duplicate key provided to createDisplay!" << std::endl;
218223 return ;
219224 }
220- displays.insert_or_assign (args[2 ].value_str , new OBS::Display (windowHandle, args[1 ].value_str ));
225+ displays.insert_or_assign (args[2 ].value_str , new OBS::Display (windowHandle, args[3 ].value_union .ui32 ,
226+ args[4 ].value_union .ui32 , args[5 ].value_union .ui32 ,
227+ args[6 ].value_union .ui32 , args[1 ].value_str ));
221228 rval.push_back (ipc::value ((uint64_t )ErrorCode::Ok));
222229 AUTO_DEBUG;
223230}
0 commit comments