X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fmisc%2Fquartztext.c;h=ba78fef11660e126f0d2306a5fb3a28e205ad6d3;hb=84e0f97a07c049c9c7082032699d54f9b4e5708a;hp=eb803e8d712bc2e365172ea7586081874248b10a;hpb=449fd28aaf007c6411251dae9d0dbfdc65b135d1;p=vlc diff --git a/modules/misc/quartztext.c b/modules/misc/quartztext.c index eb803e8d71..ba78fef116 100644 --- a/modules/misc/quartztext.c +++ b/modules/misc/quartztext.c @@ -29,7 +29,8 @@ # include "config.h" #endif -#include +#include +#include #include #include #include @@ -81,8 +82,8 @@ static ATSUStyle CreateStyle( char *psz_fontname, int i_font_size, // override the fallback font selection used when this style information is // absent. vlc_module_begin(); - set_shortname( _("Mac Text renderer")); - set_description( _("Quartz font renderer") ); + set_shortname( N_("Mac Text renderer")); + set_description( N_("Quartz font renderer") ); set_category( CAT_VIDEO ); set_subcategory( SUBCAT_VIDEO_SUBPIC ); @@ -141,10 +142,7 @@ static int Create( vlc_object_t *p_this ) // Allocate structure p_filter->p_sys = p_sys = malloc( sizeof( filter_sys_t ) ); if( !p_sys ) - { - msg_Err( p_filter, "out of memory" ); return VLC_ENOMEM; - } p_sys->psz_font_name = strdup( DEFAULT_FONT ); p_sys->i_font_opacity = 255; p_sys->i_font_color = DEFAULT_FONT_COLOR; @@ -1031,7 +1029,7 @@ static offscreen_bitmap_t *Compose( int i_text_align, UniChar *psz_utf16_str, ui // you move down the page y -= ascent; - // Set the outlining for this line to be dependant on the size of the line - + // Set the outlining for this line to be dependent on the size of the line - // make it about 5% of the ascent, with a minimum at 1.0 float f_thickness = FixedToFloat( ascent ) * 0.05; CGContextSetLineWidth( p_context, (( f_thickness > 1.0 ) ? 1.0 : f_thickness ));