Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d2e1ceb0
Commit
d2e1ceb0
authored
Sep 09, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a mono font name to the text_style_t
parent
e7eb86a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
include/vlc_text_style.h
include/vlc_text_style.h
+1
-0
src/misc/text_style.c
src/misc/text_style.c
+6
-0
No files found.
include/vlc_text_style.h
View file @
d2e1ceb0
...
...
@@ -39,6 +39,7 @@ extern "C" {
typedef
struct
{
char
*
psz_fontname
;
/**< The name of the font */
char
*
psz_monofontname
;
/**< The name of the mono font */
int
i_font_size
;
/**< The font size in pixels */
int
i_font_color
;
/**< The color of the text 0xRRGGBB
(native endianness) */
...
...
src/misc/text_style.c
View file @
d2e1ceb0
...
...
@@ -37,6 +37,7 @@ text_style_t *text_style_New( void )
/* initialize to default text style */
p_style
->
psz_fontname
=
NULL
;
p_style
->
psz_monofontname
=
NULL
;
p_style
->
i_font_size
=
22
;
p_style
->
i_font_color
=
0xffffff
;
p_style
->
i_font_alpha
=
0xff
;
...
...
@@ -67,6 +68,9 @@ text_style_t *text_style_Copy( text_style_t *p_dst, const text_style_t *p_src )
if
(
p_src
->
psz_fontname
)
p_dst
->
psz_fontname
=
strdup
(
p_src
->
psz_fontname
);
if
(
p_src
->
psz_monofontname
)
p_dst
->
psz_monofontname
=
strdup
(
p_src
->
psz_fontname
);
return
p_dst
;
}
...
...
@@ -85,6 +89,8 @@ void text_style_Delete( text_style_t *p_style )
{
if
(
p_style
)
free
(
p_style
->
psz_fontname
);
if
(
p_style
)
free
(
p_style
->
psz_monofontname
);
free
(
p_style
);
}
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