Browse Source

libobs: Allow add_alignment to be used by other source files

jp9000 10 years ago
parent
commit
ed10b1ab57
2 changed files with 3 additions and 1 deletions
  1. 2 0
      libobs/obs-internal.h
  2. 1 1
      libobs/obs-scene.c

+ 2 - 0
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  */

+ 1 - 1
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;