@@ -7,12 +7,12 @@ diff -Naur SDL.orig/src/core/android/SDL_android.c SDL/src/core/android/SDL_andr
7
7
{
8
8
- SDL_LockMutex(Android_ActivityMutex);
9
9
+ __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "nativeSetScreenResolution()");
10
- + SDL_LockMutex(Android_ActivityMutex);
10
+ + // SDL_LockMutex(Android_ActivityMutex);
11
11
12
12
Android_SetScreenResolution(surfaceWidth, surfaceHeight, deviceWidth, deviceHeight, rate);
13
13
14
14
- SDL_UnlockMutex(Android_ActivityMutex);
15
- + SDL_UnlockMutex(Android_ActivityMutex);
15
+ + // SDL_UnlockMutex(Android_ActivityMutex);
16
16
}
17
17
18
18
/* Resize */
@@ -21,15 +21,15 @@ diff -Naur SDL.orig/src/core/android/SDL_android.c SDL/src/core/android/SDL_andr
21
21
{
22
22
- SDL_LockMutex(Android_ActivityMutex);
23
23
+ __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "onNativeResize()");
24
- + SDL_LockMutex(Android_ActivityMutex);
24
+ + // SDL_LockMutex(Android_ActivityMutex);
25
25
26
26
if (Android_Window)
27
27
{
28
28
Android_SendResize(Android_Window);
29
29
}
30
30
31
31
- SDL_UnlockMutex(Android_ActivityMutex);
32
- + SDL_UnlockMutex(Android_ActivityMutex);
32
+ + // SDL_UnlockMutex(Android_ActivityMutex);
33
33
}
34
34
35
35
JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeOrientationChanged)(
@@ -38,7 +38,7 @@ diff -Naur SDL.orig/src/core/android/SDL_android.c SDL/src/core/android/SDL_andr
38
38
{
39
39
- SDL_LockMutex(Android_ActivityMutex);
40
40
+ __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "onNativeOrientationChanged()");
41
- + SDL_LockMutex(Android_ActivityMutex);
41
+ + // SDL_LockMutex(Android_ActivityMutex);
42
42
43
43
displayOrientation = (SDL_DisplayOrientation)orientation;
44
44
@@ -47,7 +47,7 @@ diff -Naur SDL.orig/src/core/android/SDL_android.c SDL/src/core/android/SDL_andr
47
47
}
48
48
49
49
- SDL_UnlockMutex(Android_ActivityMutex);
50
- + SDL_UnlockMutex(Android_ActivityMutex);
50
+ + // SDL_UnlockMutex(Android_ActivityMutex);
51
51
}
52
52
53
53
JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativeAddTouch)(
@@ -57,7 +57,7 @@ diff -Naur SDL.orig/src/core/android/SDL_android.c SDL/src/core/android/SDL_andr
57
57
{
58
58
- SDL_LockMutex(Android_ActivityMutex);
59
59
+ __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "onNativeSurfaceCreated()");
60
- + SDL_LockMutex(Android_ActivityMutex);
60
+ + // SDL_LockMutex(Android_ActivityMutex);
61
61
62
62
if (Android_Window)
63
63
{
@@ -66,15 +66,15 @@ diff -Naur SDL.orig/src/core/android/SDL_android.c SDL/src/core/android/SDL_andr
66
66
}
67
67
68
68
- SDL_UnlockMutex(Android_ActivityMutex);
69
- + SDL_UnlockMutex(Android_ActivityMutex);
69
+ + // SDL_UnlockMutex(Android_ActivityMutex);
70
70
}
71
71
72
72
/* Called from surfaceChanged() */
73
73
JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeSurfaceChanged)(JNIEnv *env, jclass jcls)
74
74
{
75
75
- SDL_LockMutex(Android_ActivityMutex);
76
76
+ __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "onNativeSurfaceChanged()");
77
- + SDL_LockMutex(Android_ActivityMutex);
77
+ + // SDL_LockMutex(Android_ActivityMutex);
78
78
79
79
#if SDL_VIDEO_OPENGL_EGL
80
80
if (Android_Window)
@@ -83,7 +83,7 @@ diff -Naur SDL.orig/src/core/android/SDL_android.c SDL/src/core/android/SDL_andr
83
83
#endif
84
84
85
85
- SDL_UnlockMutex(Android_ActivityMutex);
86
- + SDL_UnlockMutex(Android_ActivityMutex);
86
+ + // SDL_UnlockMutex(Android_ActivityMutex);
87
87
}
88
88
89
89
/* Called from surfaceDestroyed() */
@@ -94,7 +94,7 @@ diff -Naur SDL.orig/src/core/android/SDL_android.c SDL/src/core/android/SDL_andr
94
94
-
95
95
- SDL_LockMutex(Android_ActivityMutex);
96
96
+ __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "onNativeSurfaceDestroyed()");
97
- + SDL_LockMutex(Android_ActivityMutex);
97
+ + // SDL_LockMutex(Android_ActivityMutex);
98
98
99
99
if (Android_Window)
100
100
{
@@ -103,7 +103,7 @@ diff -Naur SDL.orig/src/core/android/SDL_android.c SDL/src/core/android/SDL_andr
103
103
SDL_SetError("Try to release egl_surface with context probably still active");
104
104
} else {
105
105
- SDL_UnlockMutex(Android_ActivityMutex);
106
- + SDL_UnlockMutex(Android_ActivityMutex);
106
+ + // SDL_UnlockMutex(Android_ActivityMutex);
107
107
SDL_Delay(10);
108
108
goto retry;
109
109
}
@@ -112,7 +112,7 @@ diff -Naur SDL.orig/src/core/android/SDL_android.c SDL/src/core/android/SDL_andr
112
112
}
113
113
114
114
- SDL_UnlockMutex(Android_ActivityMutex);
115
- + SDL_UnlockMutex(Android_ActivityMutex);
115
+ + // SDL_UnlockMutex(Android_ActivityMutex);
116
116
}
117
117
118
118
/* Keydown */
@@ -122,12 +122,12 @@ diff -Naur SDL.orig/src/core/android/SDL_android.c SDL/src/core/android/SDL_andr
122
122
{
123
123
- SDL_LockMutex(Android_ActivityMutex);
124
124
+ __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "onNativeTouch()");
125
- + // SDL_LockMutex(Android_ActivityMutex);
125
+ + SDL_LockMutex(Android_ActivityMutex);
126
126
127
127
Android_OnTouch(Android_Window, touch_device_id_in, pointer_finger_id_in, action, x, y, p);
128
128
129
129
- SDL_UnlockMutex(Android_ActivityMutex);
130
- + // SDL_UnlockMutex(Android_ActivityMutex);
130
+ + SDL_UnlockMutex(Android_ActivityMutex);
131
131
}
132
132
133
133
/* Mouse */
@@ -137,12 +137,12 @@ diff -Naur SDL.orig/src/core/android/SDL_android.c SDL/src/core/android/SDL_andr
137
137
{
138
138
- SDL_LockMutex(Android_ActivityMutex);
139
139
+ __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "onNativeMouse()");
140
- + SDL_LockMutex(Android_ActivityMutex);
140
+ + // SDL_LockMutex(Android_ActivityMutex);
141
141
142
142
Android_OnMouse(Android_Window, button, action, x, y, relative);
143
143
144
144
- SDL_UnlockMutex(Android_ActivityMutex);
145
- + SDL_UnlockMutex(Android_ActivityMutex);
145
+ + // SDL_UnlockMutex(Android_ActivityMutex);
146
146
}
147
147
148
148
/* Accelerometer */
0 commit comments