Skip to content

Commit 3be6c38

Browse files
committed
Merge branch 'sdl2-2.0.4' of https://github.com/brussee/python-for-android into brussee-sdl2-2.0.4
2 parents 1830608 + abbc728 commit 3be6c38

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

pythonforandroid/recipes/sdl2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
class LibSDL2Recipe(BootstrapNDKRecipe):
7-
version = "2.0.3"
7+
version = "2.0.4"
88
url = "https://www.libsdl.org/release/SDL2-{version}.tar.gz"
99

1010
dir_name = 'SDL'
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
diff --git a/src/core/android/SDL_android.c b/src/core/android/SDL_android.c
2-
index d806208..0ff801b 100644
3-
--- a/src/core/android/SDL_android.c
4-
+++ b/src/core/android/SDL_android.c
5-
@@ -180,6 +180,19 @@ void Java_org_libsdl_app_SDLActivity_onNativeHat(
1+
--- orig/src/core/android/SDL_android.c 2016-01-02 20:56:31.000000000 +0100
2+
+++ patch/src/core/android/SDL_android.c 2016-04-15 22:21:13.985708267 +0200
3+
@@ -188,6 +188,19 @@
64
Android_OnHat(device_id, hat_id, x, y);
75
}
86

97
+/* Patched in env var setter for python-for-android */
10-
+void Java_org_libsdl_app_SDLActivity_nativeSetEnv(
8+
+JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_nativeSetEnv(
119
+ JNIEnv* env, jclass jcls,
1210
+ jstring j_name, jstring j_value)
1311
+{
@@ -20,5 +18,5 @@ index d806208..0ff801b 100644
2018
+}
2119
+
2220

23-
int Java_org_libsdl_app_SDLActivity_nativeAddJoystick(
21+
JNIEXPORT jint JNICALL Java_org_libsdl_app_SDLActivity_nativeAddJoystick(
2422
JNIEnv* env, jclass jcls,

0 commit comments

Comments
 (0)