Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
f369e4fa
Commit
f369e4fa
authored
Sep 18, 2011
by
Ryan C. Gordon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patched to compile on some platforms.
parent
e9174b82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
SDL_rect.c
src/video/SDL_rect.c
+8
-8
No files found.
src/video/SDL_rect.c
View file @
f369e4fa
...
...
@@ -170,27 +170,27 @@ SDL_EnclosePoints(const SDL_Point * points, int count, const SDL_Rect * clip,
int
x
,
y
,
i
;
if
(
!
points
)
{
/
/ TODO error message
/
* TODO error message */
return
SDL_FALSE
;
}
if
(
count
<
1
)
{
/
/ TODO error message
/
* TODO error message */
return
SDL_FALSE
;
}
if
(
clip
)
{
SDL_bool
added
=
SDL_FALSE
;
const
int
clip_minx
=
clip
->
x
;
const
int
clip_miny
=
clip
->
y
;
const
int
clip_maxx
=
clip
->
x
+
clip
->
w
-
1
;
const
int
clip_maxy
=
clip
->
y
+
clip
->
h
-
1
;
/* Special case for empty rectangle */
if
(
SDL_RectEmpty
(
clip
))
{
return
SDL_FALSE
;
}
SDL_bool
added
=
SDL_FALSE
;
int
clip_minx
=
clip
->
x
;
int
clip_miny
=
clip
->
y
;
int
clip_maxx
=
clip
->
x
+
clip
->
w
-
1
;
int
clip_maxy
=
clip
->
y
+
clip
->
h
-
1
;
for
(
i
=
0
;
i
<
count
;
++
i
)
{
x
=
points
[
i
].
x
;
y
=
points
[
i
].
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