Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
9f0a713c
Commit
9f0a713c
authored
Oct 29, 2010
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncurses: missing check in CheckIdx()
parent
d8f07842
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/gui/ncurses.c
modules/gui/ncurses.c
+5
-4
No files found.
modules/gui/ncurses.c
View file @
9f0a713c
...
...
@@ -328,9 +328,10 @@ next:
*****************************************************************************/
static
void
CheckIdx
(
intf_sys_t
*
p_sys
)
{
int
lines
=
p_sys
->
i_box_lines_total
-
1
;
int
height
=
LINES
-
p_sys
->
i_box_y
-
2
;
if
(
height
>
p_sys
->
i_box_lines_total
-
1
)
height
=
p_sys
->
i_box_lines_total
-
1
;
if
(
height
>
lines
-
1
)
height
=
lines
-
1
;
/* make sure the new index is within the box */
if
(
p_sys
->
i_box_idx
<=
0
)
...
...
@@ -338,9 +339,9 @@ static void CheckIdx(intf_sys_t *p_sys)
p_sys
->
i_box_idx
=
0
;
p_sys
->
i_box_start
=
0
;
}
else
if
(
p_sys
->
i_box_idx
>=
p_sys
->
i_box_lines_total
-
1
)
else
if
(
p_sys
->
i_box_idx
>=
lines
-
1
&&
lines
>
0
)
{
p_sys
->
i_box_idx
=
p_sys
->
i_box_lines_total
-
1
;
p_sys
->
i_box_idx
=
lines
-
1
;
p_sys
->
i_box_start
=
p_sys
->
i_box_idx
-
height
;
}
...
...
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