[vlc-commits] Freetype: mark as _rgb the appropriate options

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> | Sat Oct 29 19:19:15 2011 +0200| [5e56eb1ffb4fb8f86b0d5b7be32609d919f0ae90] | committer: Jean-Baptiste Kempf

Freetype: mark as _rgb the appropriate options

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

 modules/text_renderer/freetype.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c
index fe14eda..0b4b6ae 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -187,7 +187,7 @@ vlc_module_begin ()
         change_safe()
 
     /* hook to the color values list, with default 0x00ffffff = white */
-    add_integer( "freetype-color", 0x00FFFFFF, COLOR_TEXT,
+    add_rgb( "freetype-color", 0x00FFFFFF, COLOR_TEXT,
                  COLOR_LONGTEXT, false )
         change_integer_list( pi_color_values, ppsz_color_descriptions )
         change_safe()
@@ -198,7 +198,7 @@ vlc_module_begin ()
     add_integer_with_range( "freetype-background-opacity", 0, 0, 255,
                             BG_OPACITY_TEXT, "", false )
         change_safe()
-    add_integer( "freetype-background-color", 0x00000000, BG_COLOR_TEXT,
+    add_rgb( "freetype-background-color", 0x00000000, BG_COLOR_TEXT,
                  "", false )
         change_integer_list( pi_color_values, ppsz_color_descriptions )
         change_safe()
@@ -206,7 +206,7 @@ vlc_module_begin ()
     add_integer_with_range( "freetype-outline-opacity", 255, 0, 255,
                             OUTLINE_OPACITY_TEXT, "", false )
         change_safe()
-    add_integer( "freetype-outline-color", 0x00000000, OUTLINE_COLOR_TEXT,
+    add_rgb( "freetype-outline-color", 0x00000000, OUTLINE_COLOR_TEXT,
                  "", false )
         change_integer_list( pi_color_values, ppsz_color_descriptions )
         change_safe()
@@ -218,7 +218,7 @@ vlc_module_begin ()
     add_integer_with_range( "freetype-shadow-opacity", 128, 0, 255,
                             SHADOW_OPACITY_TEXT, "", false )
         change_safe()
-    add_integer( "freetype-shadow-color", 0x00000000, SHADOW_COLOR_TEXT,
+    add_rgb( "freetype-shadow-color", 0x00000000, SHADOW_COLOR_TEXT,
                  "", false )
         change_integer_list( pi_color_values, ppsz_color_descriptions )
         change_safe()



More information about the vlc-commits mailing list