From ed10b1ab570eeede150f0740a86efdc26934f79b Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 3 Jan 2016 15:13:51 -0800 Subject: [PATCH] libobs: Allow add_alignment to be used by other source files --- libobs/obs-internal.h | 2 ++ libobs/obs-scene.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libobs/obs-internal.h b/libobs/obs-internal.h index 1e63d1d4a..3ff7005e8 100644 --- a/libobs/obs-internal.h +++ b/libobs/obs-internal.h @@ -637,6 +637,8 @@ extern float obs_source_get_target_volume(obs_source_t *source, extern void obs_source_audio_render(obs_source_t *source, uint32_t mixers, size_t channels, size_t sample_rate, size_t size); +extern void add_alignment(struct vec2 *v, uint32_t align, int cx, int cy); + /* ------------------------------------------------------------------------- */ /* outputs */ diff --git a/libobs/obs-scene.c b/libobs/obs-scene.c index fc8fddfee..7183ba7e0 100644 --- a/libobs/obs-scene.c +++ b/libobs/obs-scene.c @@ -184,7 +184,7 @@ static inline void attach_sceneitem(struct obs_scene *parent, } } -static void add_alignment(struct vec2 *v, uint32_t align, int cx, int cy) +void add_alignment(struct vec2 *v, uint32_t align, int cx, int cy) { if (align & OBS_ALIGN_RIGHT) v->x += (float)cx;