Fixed bug 3250 - Wrong backbuffer pixel format on Android, keep getting RGB_565

Use the egl format to reconfigure java SurfaceView holder format.
If there is a change, it triggers a surfaceDestroyed/Created/Change sequence.
This commit is contained in:
Sylvain Becker 2019-01-02 18:06:33 +01:00
parent a02998a292
commit a95f91bcea
4 changed files with 65 additions and 1 deletions

View file

@ -44,6 +44,7 @@ extern void Android_JNI_ShowTextInput(SDL_Rect *inputRect);
extern void Android_JNI_HideTextInput(void);
extern SDL_bool Android_JNI_IsScreenKeyboardShown(void);
extern ANativeWindow* Android_JNI_GetNativeWindow(void);
extern void Android_JNI_SetSurfaceViewFormat(int format);
extern int Android_JNI_GetDisplayDPI(float *ddpi, float *xdpi, float *ydpi);