Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
f0e231e1
Commit
f0e231e1
authored
Jul 19, 2003
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use proper linespacing
parent
bf31a776
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/misc/freetype.c
modules/misc/freetype.c
+5
-4
No files found.
modules/misc/freetype.c
View file @
f0e231e1
...
...
@@ -2,7 +2,7 @@
* freetype.c : Put text on the video, using freetype2
*****************************************************************************
* Copyright (C) 2002, 2003 VideoLAN
* $Id: freetype.c,v 1.
1 2003/07/14 21:32:59
sigmunau Exp $
* $Id: freetype.c,v 1.
2 2003/07/19 14:41:30
sigmunau Exp $
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
...
...
@@ -257,7 +257,8 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic,
{
// pixel = alpha;
// pixel = (pixel^alpha)^pixel;
pixel
=
((
pixel
*
(
255
-
alpha
))
>>
8
)
+
(
255
*
alpha
>>
8
);
pixel
=
(
(
pixel
*
(
255
-
alpha
)
)
>>
8
)
+
(
255
*
alpha
>>
8
);
}
}
FT_Done_Glyph
(
p_glyph
);
...
...
@@ -353,12 +354,12 @@ static int AddText ( vout_thread_t *p_vout, byte_t *psz_string,
{
i_pen_x
=
0
;
result
.
x
=
__MAX
(
result
.
x
,
line
.
xMax
);
result
.
y
+=
line
.
yMax
-
line
.
yMin
;
result
.
y
+=
face
->
height
>>
6
;
line
.
xMin
=
0
;
line
.
xMax
=
0
;
line
.
yMin
=
0
;
line
.
yMax
=
0
;
i_pen_y
=
result
.
y
+
1
;
i_pen_y
+=
face
->
height
>>
6
;
continue
;
}
i_glyph_index
=
FT_Get_Char_Index
(
face
,
i_char
);
...
...
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