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
bba4029d
Commit
bba4029d
authored
Oct 15, 2011
by
Ryan C. Gordon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed STL dependency in Android code.
parent
aa76adf4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
SDL_android.cpp
src/core/android/SDL_android.cpp
+5
-4
No files found.
src/core/android/SDL_android.cpp
View file @
bba4029d
...
@@ -23,8 +23,6 @@
...
@@ -23,8 +23,6 @@
#include "SDL_android.h"
#include "SDL_android.h"
#include <algorithm>
extern
"C"
{
extern
"C"
{
#include "../../events/SDL_events_c.h"
#include "../../events/SDL_events_c.h"
#include "../../video/android/SDL_androidkeyboard.h"
#include "../../video/android/SDL_androidkeyboard.h"
...
@@ -521,8 +519,11 @@ extern "C" long Android_JNI_FileSeek(SDL_RWops* ctx, long offset, int whence)
...
@@ -521,8 +519,11 @@ extern "C" long Android_JNI_FileSeek(SDL_RWops* ctx, long offset, int whence)
// The easy case where we're seeking forwards
// The easy case where we're seeking forwards
while
(
movement
>
0
)
{
while
(
movement
>
0
)
{
size_t
result
=
Android_JNI_FileRead
(
ctx
,
buffer
,
1
,
long
amount
=
(
long
)
sizeof
(
buffer
);
std
::
min
(
movement
,
(
long
)
sizeof
(
buffer
)));
if
(
amount
>
movement
)
{
amount
=
movement
;
}
size_t
result
=
Android_JNI_FileRead
(
ctx
,
buffer
,
1
,
amount
);
if
(
result
<=
0
)
{
if
(
result
<=
0
)
{
// Failed to read/skip the required amount, so fail
// Failed to read/skip the required amount, so fail
...
...
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