Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
5cedfe6d
Commit
5cedfe6d
authored
May 06, 2014
by
Felix Abecassis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
text_renderer: avoid 0xff << 24 with an int type
parent
1b99dcea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/text_renderer/text_renderer.c
modules/text_renderer/text_renderer.c
+2
-2
No files found.
modules/text_renderer/text_renderer.c
View file @
5cedfe6d
...
@@ -398,7 +398,7 @@ int HandleFontAttributes( xml_reader_t *p_xml_reader,
...
@@ -398,7 +398,7 @@ int HandleFontAttributes( xml_reader_t *p_xml_reader,
rv
=
PushFont
(
p_fonts
,
rv
=
PushFont
(
p_fonts
,
psz_fontname
,
psz_fontname
,
i_font_size
,
i_font_size
,
(
i_font_color
&
0xffffff
)
|
((
i_font_alpha
&
0xff
)
<<
24
),
(
i_font_color
&
0xffffff
)
|
((
uint32_t
)(
i_font_alpha
&
0xff
)
<<
24
),
i_karaoke_bg_color
);
i_karaoke_bg_color
);
free
(
psz_fontname
);
free
(
psz_fontname
);
...
@@ -572,7 +572,7 @@ int ProcessNodes( filter_t *p_filter,
...
@@ -572,7 +572,7 @@ int ProcessNodes( filter_t *p_filter,
p_default_style
->
psz_fontname
,
p_default_style
->
psz_fontname
,
i_font_size
,
i_font_size
,
(
i_font_color
&
0xffffff
)
|
(
i_font_color
&
0xffffff
)
|
(
(
i_font_alpha
&
0xff
)
<<
24
),
((
uint32_t
)
(
i_font_alpha
&
0xff
)
<<
24
),
0x00ffffff
);
0x00ffffff
);
}
}
if
(
p_default_style
->
i_style_flags
&
STYLE_BOLD
)
if
(
p_default_style
->
i_style_flags
&
STYLE_BOLD
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment