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
ba03409b
Commit
ba03409b
authored
Sep 29, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartztext: handle invalid text colors
parent
13e35edc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/text_renderer/quartztext.c
modules/text_renderer/quartztext.c
+5
-1
No files found.
modules/text_renderer/quartztext.c
View file @
ba03409b
...
...
@@ -593,7 +593,11 @@ static void setFontAttibutes(char *psz_fontname, int i_font_size, uint32_t i_fon
slant
);
CFRelease
(
slant
);
// Handle foreground colour
// fetch invalid colors
if
(
i_font_color
==
0xFFFFFFFF
)
i_font_color
=
0x00FFFFFF
;
// Handle foreground color
CGColorSpaceRef
rgbColorSpace
=
CGColorSpaceCreateDeviceRGB
();
CGFloat
components
[]
=
{
(
float
)((
i_font_color
&
0x00ff0000
)
>>
16
)
/
255
.
0
,
(
float
)((
i_font_color
&
0x0000ff00
)
>>
8
)
/
255
.
0
,
...
...
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