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
35ef24dd
Commit
35ef24dd
authored
Sep 07, 2011
by
Ryan C. Gordon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiler warning on 32-bit Mac OS X.
parent
1ee4e6dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SDL_cocoawindow.m
src/video/cocoa/SDL_cocoawindow.m
+2
-2
No files found.
src/video/cocoa/SDL_cocoawindow.m
View file @
35ef24dd
...
...
@@ -401,7 +401,7 @@ static __inline__ void ConvertNSRect(NSRect *r)
enumerator
=
[
touches
objectEnumerator
];
touch
=
(
NSTouch
*
)[
enumerator
nextObject
];
while
(
touch
)
{
SDL_TouchID
touchId
=
(
SDL_TouchID
)[
touch
device
]
;
const
SDL_TouchID
touchId
=
(
SDL_TouchID
)
((
size_t
)
[
touch
device
])
;
if
(
!
SDL_GetTouch
(
touchId
))
{
SDL_Touch
touch
;
...
...
@@ -421,7 +421,7 @@ static __inline__ void ConvertNSRect(NSRect *r)
}
}
SDL_FingerID
fingerId
=
(
SDL_FingerID
)[
touch
identity
]
;
const
SDL_FingerID
fingerId
=
(
SDL_FingerID
)
((
size_t
)
[
touch
identity
])
;
float
x
=
[
touch
normalizedPosition
].
x
;
float
y
=
[
touch
normalizedPosition
].
y
;
/* Make the origin the upper left instead of the lower left */
...
...
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