mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
libobs: Allow add_alignment to be used by other source files
This commit is contained in:
parent
5098f68db0
commit
ed10b1ab57
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue