mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
(API Change) Unsquish libobs (base) names
Previous names: New names: ----------------------------------------------------------- obs_view_setsource obs_view_set_source obs_view_getsource obs_view_get_source obs_source_getdisplayname obs_source_get_display_name obs_source_getwidth obs_source_get_width obs_source_getheight obs_source_get_height obs_filter_getparent obs_filter_get_parent obs_filter_gettarget obs_filter_get_target obs_source_filter_setorder obs_source_filter_set_order obs_source_getsettings obs_source_get_settings obs_source_getname obs_source_get_name obs_source_setname obs_source_set_name obs_source_setvolume obs_source_set_volume obs_source_getvolume obs_source_get_volume obs_scene_getsource obs_scene_get_source obs_scene_fromsource obs_scene_from_source obs_scene_findsource obs_scene_find_source obs_output_getdisplayname obs_output_get_display_name obs_output_getname obs_output_get_name obs_encoder_getname obs_encoder_get_name obs_service_getdisplayname obs_service_get_display_name obs_service_getname obs_service_get_name
This commit is contained in:
@@ -66,7 +66,7 @@ void OBSBasicTransform::SetScene(OBSScene scene)
|
||||
removeSignal.Disconnect();
|
||||
|
||||
if (scene) {
|
||||
OBSSource source = obs_scene_getsource(scene);
|
||||
OBSSource source = obs_scene_get_source(scene);
|
||||
signal_handler_t signal = obs_source_signalhandler(source);
|
||||
|
||||
transformSignal.Connect(signal, "item_transform",
|
||||
@@ -102,7 +102,7 @@ void OBSBasicTransform::OBSChannelChanged(void *param, calldata_t data)
|
||||
OBSSource source = (obs_source_t)calldata_ptr(data, "source");
|
||||
|
||||
if (channel == 0) {
|
||||
OBSScene scene = obs_scene_fromsource(source);
|
||||
OBSScene scene = obs_scene_from_source(source);
|
||||
window->SetScene(scene);
|
||||
|
||||
if (!scene)
|
||||
@@ -184,8 +184,8 @@ void OBSBasicTransform::RefreshControls()
|
||||
obs_sceneitem_get_info(item, &osi);
|
||||
|
||||
obs_source_t source = obs_sceneitem_get_source(item);
|
||||
float width = float(obs_source_getwidth(source));
|
||||
float height = float(obs_source_getheight(source));
|
||||
float width = float(obs_source_get_width(source));
|
||||
float height = float(obs_source_get_height(source));
|
||||
|
||||
int alignIndex = AlignToList(osi.alignment);
|
||||
int boundsAlignIndex = AlignToList(osi.bounds_alignment);
|
||||
@@ -221,8 +221,8 @@ void OBSBasicTransform::OnBoundsType(int index)
|
||||
obs_bounds_type lastType = obs_sceneitem_get_bounds_type(item);
|
||||
if (lastType == OBS_BOUNDS_NONE) {
|
||||
OBSSource source = obs_sceneitem_get_source(item);
|
||||
int width = (int)obs_source_getwidth(source);
|
||||
int height = (int)obs_source_getheight(source);
|
||||
int width = (int)obs_source_get_width(source);
|
||||
int height = (int)obs_source_get_height(source);
|
||||
|
||||
ui->boundsWidth->setValue(width);
|
||||
ui->boundsHeight->setValue(height);
|
||||
@@ -238,8 +238,8 @@ void OBSBasicTransform::OnControlChanged()
|
||||
return;
|
||||
|
||||
obs_source_t source = obs_sceneitem_get_source(item);
|
||||
double width = double(obs_source_getwidth(source));
|
||||
double height = double(obs_source_getheight(source));
|
||||
double width = double(obs_source_get_width(source));
|
||||
double height = double(obs_source_get_height(source));
|
||||
|
||||
obs_transform_info oti;
|
||||
oti.pos.x = float(ui->positionX->value());
|
||||
|
||||
Reference in New Issue
Block a user