Commit 1bbbe098 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

config: remove advanced from add_rgb()

parent ef7feb72
......@@ -407,7 +407,7 @@ VLC_METADATA_EXPORTS
#define add_integer( name, value, text, longtext, advc ) \
add_int_inner(CONFIG_ITEM_INTEGER, name, text, longtext, value)
#define add_rgb( name, value, text, longtext, advc ) \
#define add_rgb(name, value, text, longtext) \
add_int_inner(CONFIG_ITEM_RGB, name, text, longtext, value) \
change_integer_range( 0, 0xFFFFFF )
......
......@@ -158,8 +158,7 @@ vlc_module_begin ()
/* 5 sets the default to top [1] left [4] */
add_integer_with_range( CFG_PREFIX "opacity", 255, 0, 255,
OPACITY_TEXT, OPACITY_LONGTEXT, false )
add_rgb( CFG_PREFIX "color", 0xFFFFFF, COLOR_TEXT, COLOR_LONGTEXT,
false )
add_rgb(CFG_PREFIX "color", 0xFFFFFF, COLOR_TEXT, COLOR_LONGTEXT)
change_integer_list( pi_color_values, ppsz_color_descriptions )
add_integer( CFG_PREFIX "size", 0, SIZE_TEXT, SIZE_LONGTEXT,
false )
......
......@@ -205,8 +205,7 @@ vlc_module_begin ()
/* 5 sets the default to top [1] left [4] */
add_integer_with_range( CFG_PREFIX "opacity", 255, 0, 255,
OPACITY_TEXT, OPACITY_LONGTEXT, false )
add_rgb( CFG_PREFIX "color", 0xFFFFFF, COLOR_TEXT, COLOR_LONGTEXT,
false )
add_rgb(CFG_PREFIX "color", 0xFFFFFF, COLOR_TEXT, COLOR_LONGTEXT)
change_integer_list( pi_color_values, ppsz_color_descriptions )
add_integer( CFG_PREFIX "size", 0, SIZE_TEXT, SIZE_LONGTEXT, false )
change_integer_range( 0, 4096)
......
......@@ -163,8 +163,7 @@ vlc_module_begin ()
change_safe()
/* hook to the color values list, with default 0x00ffffff = white */
add_rgb( "freetype-color", 0x00FFFFFF, COLOR_TEXT,
COLOR_LONGTEXT, false )
add_rgb("freetype-color", 0x00FFFFFF, COLOR_TEXT, COLOR_LONGTEXT)
change_integer_list( pi_color_values, ppsz_color_descriptions )
change_integer_range( 0x000000, 0xFFFFFF )
change_safe()
......@@ -175,8 +174,7 @@ vlc_module_begin ()
add_integer_with_range( "freetype-background-opacity", 0, 0, 255,
BG_OPACITY_TEXT, NULL, false )
change_safe()
add_rgb( "freetype-background-color", 0x00000000, BG_COLOR_TEXT,
NULL, false )
add_rgb("freetype-background-color", 0x00000000, BG_COLOR_TEXT, NULL)
change_integer_list( pi_color_values, ppsz_color_descriptions )
change_integer_range( 0x000000, 0xFFFFFF )
change_safe()
......@@ -184,8 +182,7 @@ vlc_module_begin ()
add_integer_with_range( "freetype-outline-opacity", 255, 0, 255,
OUTLINE_OPACITY_TEXT, NULL, false )
change_safe()
add_rgb( "freetype-outline-color", 0x00000000, OUTLINE_COLOR_TEXT,
NULL, false )
add_rgb("freetype-outline-color", 0x00000000, OUTLINE_COLOR_TEXT, NULL)
change_integer_list( pi_color_values, ppsz_color_descriptions )
change_integer_range( 0x000000, 0xFFFFFF )
change_safe()
......@@ -197,8 +194,7 @@ vlc_module_begin ()
add_integer_with_range( "freetype-shadow-opacity", 128, 0, 255,
SHADOW_OPACITY_TEXT, NULL, false )
change_safe()
add_rgb( "freetype-shadow-color", 0x00000000, SHADOW_COLOR_TEXT,
NULL, false )
add_rgb("freetype-shadow-color", 0x00000000, SHADOW_COLOR_TEXT, NULL)
change_integer_list( pi_color_values, ppsz_color_descriptions )
change_integer_range( 0x000000, 0xFFFFFF )
change_safe()
......
......@@ -73,8 +73,7 @@ vlc_module_begin ()
set_category( CAT_VIDEO )
set_subcategory( SUBCAT_VIDEO_VFILTER )
set_capability( "video filter", 0 )
add_rgb( CFG_PREFIX "color", 0x00FF0000, COLOR_TEXT,
COLOR_LONGTEXT, false )
add_rgb(CFG_PREFIX "color", 0x00FF0000, COLOR_TEXT, COLOR_LONGTEXT)
change_integer_list( pi_color_values, ppsz_color_descriptions )
add_integer( CFG_PREFIX "saturationthres", 20,
N_("Saturation threshold"), "", false )
......
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