[vlc-commits] [Git][videolan/vlc][master] freetype: remove unnecessary rgb range calls

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Wed Jan 5 07:52:01 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
33290609 by Lyndon Brown at 2022-01-05T07:38:42+00:00
freetype: remove unnecessary rgb range calls

already done by the add_rgb() macro

- - - - -


1 changed file:

- modules/text_renderer/freetype/freetype.c


Changes:

=====================================
modules/text_renderer/freetype/freetype.c
=====================================
@@ -145,7 +145,6 @@ vlc_module_begin ()
     /* hook to the color values list, with default 0x00ffffff = white */
     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()
 
     add_bool( "freetype-bold", false, BOLD_TEXT, NULL )
@@ -156,7 +155,6 @@ vlc_module_begin ()
         change_safe()
     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()
 
     add_integer_with_range( "freetype-outline-opacity", 255, 0, 255,
@@ -164,7 +162,6 @@ vlc_module_begin ()
         change_safe()
     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()
     add_integer_with_range( "freetype-outline-thickness", 4, 0, 50, OUTLINE_THICKNESS_TEXT,
              NULL )
@@ -176,7 +173,6 @@ vlc_module_begin ()
         change_safe()
     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()
     add_float_with_range( "freetype-shadow-angle", -45, -360, 360,
                           SHADOW_ANGLE_TEXT, NULL )



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/332906095a1567eb1e0a9b6674bca17c73a36418

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/332906095a1567eb1e0a9b6674bca17c73a36418
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list