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
23e14ee5
Commit
23e14ee5
authored
Apr 23, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB/screen: width and height are unsigned
parent
1e42c432
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
modules/access/screen/xcb.c
modules/access/screen/xcb.c
+8
-8
No files found.
modules/access/screen/xcb.c
View file @
23e14ee5
...
...
@@ -349,8 +349,8 @@ discard:
return
;
}
int
w
=
sys
->
w
;
int
h
=
sys
->
h
;
unsigned
w
=
sys
->
w
;
unsigned
h
=
sys
->
h
;
int
x
,
y
;
if
(
sys
->
follow_mouse
)
...
...
@@ -366,9 +366,9 @@ discard:
if
(
w
==
0
||
w
>
geo
->
width
)
w
=
geo
->
width
;
x
=
ptr
->
win_x
;
if
(
x
<
w
/
2
)
if
(
x
<
(
int
)(
w
/
2
)
)
x
=
0
;
else
if
(
x
>=
(
int
)
geo
->
width
-
(
w
/
2
))
else
if
(
x
>=
(
int
)
(
geo
->
width
-
(
w
/
2
)
))
x
=
geo
->
width
-
w
;
else
x
-=
w
/
2
;
...
...
@@ -376,9 +376,9 @@ discard:
if
(
h
==
0
||
h
>
geo
->
height
)
h
=
geo
->
height
;
y
=
ptr
->
win_y
;
if
(
y
<
h
/
2
)
if
(
y
<
(
int
)(
h
/
2
)
)
y
=
0
;
else
if
(
y
>=
(
int
)
geo
->
height
-
(
h
/
2
))
else
if
(
y
>=
(
int
)
(
geo
->
height
-
(
h
/
2
)
))
y
=
geo
->
height
-
h
;
else
y
-=
h
/
2
;
...
...
@@ -391,14 +391,14 @@ discard:
max
=
(
int
)
geo
->
width
-
x
;
if
(
max
<=
0
)
goto
discard
;
if
(
w
==
0
||
w
>
max
)
if
(
w
==
0
||
w
>
(
unsigned
)
max
)
w
=
max
;
y
=
sys
->
y
;
max
=
(
int
)
geo
->
height
-
y
;
if
(
max
<=
0
)
goto
discard
;
if
(
h
==
0
||
h
>
max
)
if
(
h
==
0
||
h
>
(
unsigned
)
max
)
h
=
max
;
}
...
...
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