Commit e875fef5 authored by Laurent Aimar's avatar Laurent Aimar

Removed OSD_ALIGN_* flags.

SUBPICTURE_ALIGN_* must be used instead.
parent 308b6e6d
...@@ -207,12 +207,6 @@ VLC_EXPORT( void, spu_RenderSubpictures, ( spu_t *, picture_t *, const video_fo ...@@ -207,12 +207,6 @@ VLC_EXPORT( void, spu_RenderSubpictures, ( spu_t *, picture_t *, const video_fo
/** /**
* OSD menu position and picture type defines * OSD menu position and picture type defines
*/ */
#define OSD_ALIGN_LEFT 0x1
#define OSD_ALIGN_RIGHT 0x2
#define OSD_ALIGN_TOP 0x4
#define OSD_ALIGN_BOTTOM 0x8
#define OSD_HOR_SLIDER 1 #define OSD_HOR_SLIDER 1
#define OSD_VERT_SLIDER 2 #define OSD_VERT_SLIDER 2
......
...@@ -861,7 +861,7 @@ static picture_t *RenderText( intf_thread_t *p_intf, const char *psz_string, ...@@ -861,7 +861,7 @@ static picture_t *RenderText( intf_thread_t *p_intf, const char *psz_string,
return NULL; return NULL;
} }
p_region->p_style = text_style_Duplicate( p_style ); p_region->p_style = text_style_Duplicate( p_style );
p_region->i_align = OSD_ALIGN_LEFT | OSD_ALIGN_TOP; p_region->i_align = SUBPICTURE_ALIGN_LEFT | SUBPICTURE_ALIGN_TOP;
if( p_sys->p_text->pf_render_text ) if( p_sys->p_text->pf_render_text )
{ {
......
...@@ -361,7 +361,7 @@ static subpicture_t *FilterSub( filter_t *p_filter, mtime_t date ) ...@@ -361,7 +361,7 @@ static subpicture_t *FilterSub( filter_t *p_filter, mtime_t date )
/* where to locate the bar graph: */ /* where to locate the bar graph: */
if( p_sys->i_pos < 0 ) if( p_sys->i_pos < 0 )
{ /* set to an absolute xy */ { /* set to an absolute xy */
p_region->i_align = OSD_ALIGN_RIGHT | OSD_ALIGN_TOP; p_region->i_align = SUBPICTURE_ALIGN_RIGHT | SUBPICTURE_ALIGN_TOP;
p_spu->b_absolute = true; p_spu->b_absolute = true;
} }
else else
......
...@@ -375,7 +375,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date ) ...@@ -375,7 +375,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
} }
p_region->i_x = p_overlay->i_x; p_region->i_x = p_overlay->i_x;
p_region->i_y = p_overlay->i_y; p_region->i_y = p_overlay->i_y;
p_region->i_align = OSD_ALIGN_LEFT | OSD_ALIGN_TOP; p_region->i_align = SUBPICTURE_ALIGN_LEFT | SUBPICTURE_ALIGN_TOP;
p_region->i_alpha = p_overlay->i_alpha; p_region->i_alpha = p_overlay->i_alpha;
pp_region = &p_region->p_next; pp_region = &p_region->p_next;
} }
......
...@@ -400,7 +400,7 @@ static subpicture_t *FilterSub( filter_t *p_filter, mtime_t date ) ...@@ -400,7 +400,7 @@ static subpicture_t *FilterSub( filter_t *p_filter, mtime_t date )
/* where to locate the logo: */ /* where to locate the logo: */
if( p_sys->i_pos < 0 ) if( p_sys->i_pos < 0 )
{ /* set to an absolute xy */ { /* set to an absolute xy */
p_region->i_align = OSD_ALIGN_RIGHT | OSD_ALIGN_TOP; p_region->i_align = SUBPICTURE_ALIGN_RIGHT | SUBPICTURE_ALIGN_TOP;
p_spu->b_absolute = true; p_spu->b_absolute = true;
} }
else else
......
...@@ -313,7 +313,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date ) ...@@ -313,7 +313,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
/* where to locate the string: */ /* where to locate the string: */
if( p_sys->i_pos < 0 ) if( p_sys->i_pos < 0 )
{ /* set to an absolute xy */ { /* set to an absolute xy */
p_spu->p_region->i_align = OSD_ALIGN_LEFT | OSD_ALIGN_TOP; p_spu->p_region->i_align = SUBPICTURE_ALIGN_LEFT | SUBPICTURE_ALIGN_TOP;
p_spu->b_absolute = true; p_spu->b_absolute = true;
} }
else else
......
...@@ -484,7 +484,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date ) ...@@ -484,7 +484,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
/* where to locate the string: */ /* where to locate the string: */
if( p_sys->i_pos < 0 ) if( p_sys->i_pos < 0 )
{ /* set to an absolute xy */ { /* set to an absolute xy */
p_spu->p_region->i_align = OSD_ALIGN_LEFT | OSD_ALIGN_TOP; p_spu->p_region->i_align = SUBPICTURE_ALIGN_LEFT | SUBPICTURE_ALIGN_TOP;
p_spu->b_absolute = true; p_spu->b_absolute = true;
} }
else else
......
...@@ -131,7 +131,7 @@ void osd_Message( spu_t *p_spu, int i_channel, ...@@ -131,7 +131,7 @@ void osd_Message( spu_t *p_spu, int i_channel,
if( vasprintf( &psz_string, psz_format, args ) != -1 ) if( vasprintf( &psz_string, psz_format, args ) != -1 )
{ {
osd_ShowTextRelative( p_spu, i_channel, psz_string, NULL, osd_ShowTextRelative( p_spu, i_channel, psz_string, NULL,
OSD_ALIGN_TOP|OSD_ALIGN_RIGHT, 30,20,1000000 ); SUBPICTURE_ALIGN_TOP|SUBPICTURE_ALIGN_RIGHT, 30,20,1000000 );
free( psz_string ); free( psz_string );
} }
......
...@@ -143,7 +143,7 @@ void vout_OSDMessage( vlc_object_t *p_caller, int i_channel, ...@@ -143,7 +143,7 @@ void vout_OSDMessage( vlc_object_t *p_caller, int i_channel,
if( vasprintf( &psz_string, psz_format, args ) != -1 ) if( vasprintf( &psz_string, psz_format, args ) != -1 )
{ {
vout_ShowTextRelative( p_vout, i_channel, psz_string, NULL, vout_ShowTextRelative( p_vout, i_channel, psz_string, NULL,
OSD_ALIGN_TOP|OSD_ALIGN_RIGHT, SUBPICTURE_ALIGN_TOP|SUBPICTURE_ALIGN_RIGHT,
30 + p_vout->p->fmt_in.i_width 30 + p_vout->p->fmt_in.i_width
- p_vout->p->fmt_in.i_visible_width - p_vout->p->fmt_in.i_visible_width
- p_vout->p->fmt_in.i_x_offset, - p_vout->p->fmt_in.i_x_offset,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment