mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
parent
f2157b6c25
commit
a55c0e1479
@ -732,7 +732,7 @@ JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeResize)(
|
|||||||
|
|
||||||
if (Android_Window)
|
if (Android_Window)
|
||||||
{
|
{
|
||||||
Android_send_resize = 1;
|
Android_SendResize(Android_Window);
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_UnlockMutex(Android_ActivityMutex);
|
SDL_UnlockMutex(Android_ActivityMutex);
|
||||||
|
@ -66,11 +66,6 @@ android_egl_context_restore(SDL_Window *window)
|
|||||||
event.type = SDL_RENDER_DEVICE_RESET;
|
event.type = SDL_RENDER_DEVICE_RESET;
|
||||||
SDL_PushEvent(&event);
|
SDL_PushEvent(&event);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Android_send_resize) {
|
|
||||||
Android_send_resize = 0;
|
|
||||||
Android_SendResize(window);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +69,6 @@ static int Android_ScreenRate = 0;
|
|||||||
SDL_sem *Android_PauseSem = NULL;
|
SDL_sem *Android_PauseSem = NULL;
|
||||||
SDL_sem *Android_ResumeSem = NULL;
|
SDL_sem *Android_ResumeSem = NULL;
|
||||||
SDL_mutex *Android_ActivityMutex = NULL;
|
SDL_mutex *Android_ActivityMutex = NULL;
|
||||||
int Android_send_resize = 0;
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
Android_Available(void)
|
Android_Available(void)
|
||||||
|
@ -44,7 +44,6 @@ extern int Android_SurfaceWidth;
|
|||||||
extern int Android_SurfaceHeight;
|
extern int Android_SurfaceHeight;
|
||||||
extern SDL_sem *Android_PauseSem, *Android_ResumeSem;
|
extern SDL_sem *Android_PauseSem, *Android_ResumeSem;
|
||||||
extern SDL_mutex *Android_ActivityMutex;
|
extern SDL_mutex *Android_ActivityMutex;
|
||||||
extern int Android_send_resize;
|
|
||||||
|
|
||||||
#endif /* SDL_androidvideo_h_ */
|
#endif /* SDL_androidvideo_h_ */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user