[vlc-commits] Video Filter: use rgb to define colors

Jean-Baptiste Kempf git at videolan.org
Mon Oct 31 00:42:31 CET 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Oct 30 00:17:29 2011 +0200| [c22b7e0ece66ea1d8a0df64076f783b765b4a371] | committer: Jean-Baptiste Kempf

Video Filter: use rgb to define colors

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c22b7e0ece66ea1d8a0df64076f783b765b4a371
---

 modules/video_filter/colorthres.c |    2 +-
 modules/video_filter/marq.c       |    2 +-
 modules/video_filter/rss.c        |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/video_filter/colorthres.c b/modules/video_filter/colorthres.c
index 9b4e34b..d57e677 100644
--- a/modules/video_filter/colorthres.c
+++ b/modules/video_filter/colorthres.c
@@ -72,7 +72,7 @@ vlc_module_begin ()
     set_category( CAT_VIDEO )
     set_subcategory( SUBCAT_VIDEO_VFILTER )
     set_capability( "video filter2", 0 )
-    add_integer( CFG_PREFIX "color", 0x00FF0000, COLOR_TEXT,
+    add_rgb( CFG_PREFIX "color", 0x00FF0000, COLOR_TEXT,
                  COLOR_LONGTEXT, false )
         change_integer_list( pi_color_values, ppsz_color_descriptions )
     add_integer( CFG_PREFIX "saturationthres", 20,
diff --git a/modules/video_filter/marq.c b/modules/video_filter/marq.c
index cfcfe31..7343c80 100644
--- a/modules/video_filter/marq.c
+++ b/modules/video_filter/marq.c
@@ -164,7 +164,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_integer( CFG_PREFIX "color", 0xFFFFFF, COLOR_TEXT, COLOR_LONGTEXT,
+    add_rgb( CFG_PREFIX "color", 0xFFFFFF, COLOR_TEXT, COLOR_LONGTEXT,
                  false )
         change_integer_list( pi_color_values, ppsz_color_descriptions )
     add_integer( CFG_PREFIX "size", -1, SIZE_TEXT, SIZE_LONGTEXT,
diff --git a/modules/video_filter/rss.c b/modules/video_filter/rss.c
index 5d394a8..af00625 100644
--- a/modules/video_filter/rss.c
+++ b/modules/video_filter/rss.c
@@ -207,7 +207,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_integer( CFG_PREFIX "color", 0xFFFFFF, COLOR_TEXT, COLOR_LONGTEXT,
+    add_rgb( CFG_PREFIX "color", 0xFFFFFF, COLOR_TEXT, COLOR_LONGTEXT,
                   false )
         change_integer_list( pi_color_values, ppsz_color_descriptions )
     add_integer( CFG_PREFIX "size", -1, SIZE_TEXT, SIZE_LONGTEXT, false )



More information about the vlc-commits mailing list