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
7851e1d6
Commit
7851e1d6
authored
Oct 23, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/misc/freetype.c: off by one error.
parent
73e1f33a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/misc/freetype.c
modules/misc/freetype.c
+3
-2
No files found.
modules/misc/freetype.c
View file @
7851e1d6
...
...
@@ -175,7 +175,8 @@ static int Create( vlc_object_t *p_this )
p_sys
->
pi_gamma
[
i
]
=
(
uint8_t
)(
pow
(
(
double
)
i
*
255
.
0
f
,
0
.
5
f
)
);
}
var_Create
(
p_filter
,
"freetype-font"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_filter
,
"freetype-font"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_filter
,
"freetype-fontsize"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_filter
,
"freetype-rel-fontsize"
,
...
...
@@ -365,7 +366,7 @@ static void Render( filter_t *p_filter, subpicture_t *p_spu,
}
i_offset
=
(
p_line
->
p_glyph_pos
[
i
].
y
+
i_glyph_tmax
-
p_glyph
->
top
)
*
i_glyph_tmax
-
p_glyph
->
top
+
1
)
*
i_pitch
+
p_line
->
p_glyph_pos
[
i
].
x
+
p_glyph
->
left
+
1
;
for
(
y
=
0
,
i_bitmap_offset
=
0
;
y
<
p_glyph
->
bitmap
.
rows
;
y
++
)
...
...
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