[vlc-commits] Add ranges to font sizes

Kaarlo Raiha git at videolan.org
Sun Apr 15 19:10:50 CEST 2012


vlc | branch: master | Kaarlo Raiha <kaarlo.raiha at gmail.com> | Sun Apr 15 15:12:22 2012 +0300| [8c8fce6fd910fed93defe8acbe49144e2d2162ae] | committer: Jean-Baptiste Kempf

Add ranges to font sizes

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/text_renderer/freetype.c |    1 +
 modules/video_filter/marq.c      |    1 +
 modules/video_filter/rss.c       |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c
index d6b83a0..b3b337d 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -189,6 +189,7 @@ vlc_module_begin ()
 
     add_integer( "freetype-fontsize", 0, FONTSIZE_TEXT,
                  FONTSIZE_LONGTEXT, true )
+        change_integer_range( 0, 4096)
         change_safe()
 
     add_integer( "freetype-rel-fontsize", 16, FONTSIZER_TEXT,
diff --git a/modules/video_filter/marq.c b/modules/video_filter/marq.c
index 7343c80..f972047 100644
--- a/modules/video_filter/marq.c
+++ b/modules/video_filter/marq.c
@@ -169,6 +169,7 @@ vlc_module_begin ()
         change_integer_list( pi_color_values, ppsz_color_descriptions )
     add_integer( CFG_PREFIX "size", -1, SIZE_TEXT, SIZE_LONGTEXT,
                  false )
+        change_integer_range( -1, 4096)
 
     set_section( N_("Misc"), NULL )
     add_integer( CFG_PREFIX "timeout", 0, TIMEOUT_TEXT, TIMEOUT_LONGTEXT,
diff --git a/modules/video_filter/rss.c b/modules/video_filter/rss.c
index af00625..f0a3146 100644
--- a/modules/video_filter/rss.c
+++ b/modules/video_filter/rss.c
@@ -211,6 +211,7 @@ vlc_module_begin ()
                   false )
         change_integer_list( pi_color_values, ppsz_color_descriptions )
     add_integer( CFG_PREFIX "size", -1, SIZE_TEXT, SIZE_LONGTEXT, false )
+        change_integer_range( -1, 4096)
 
     set_section( N_("Misc"), NULL )
     add_integer( CFG_PREFIX "speed", 100000, SPEED_TEXT, SPEED_LONGTEXT,



More information about the vlc-commits mailing list