| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | |
| | | /* Called by the JNI layer when the screen changes size or format */ |
| | | extern void Android_SetScreenResolution(int surfaceWidth, int surfaceHeight, int deviceWidth, int deviceHeight, Uint32 format, float rate); |
| | | extern void Android_SendResize(SDL_Window *window); |
| | | |
| | | /* Private display data */ |
| | | |
| | | typedef struct SDL_VideoData |
| | | { |
| | | SDL_Rect textRect; |
| | | SDL_Rect textRect; |
| | | int isPaused; |
| | | int isPausing; |
| | | } SDL_VideoData; |
| | | |
| | | extern int Android_SurfaceWidth; |
| | | extern int Android_SurfaceHeight; |
| | | extern int Android_DeviceWidth; |
| | | extern int Android_DeviceHeight; |
| | | extern Uint32 Android_ScreenFormat; |
| | | extern SDL_sem *Android_PauseSem, *Android_ResumeSem; |
| | | extern SDL_Window *Android_Window; |
| | | |
| | | extern SDL_mutex *Android_ActivityMutex; |
| | | |
| | | #endif /* SDL_androidvideo_h_ */ |
| | | |