From e96d4760ac72accafc362918202872f7486f36c0 Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Tue, 18 Jun 2019 18:53:58 +0200 Subject: [PATCH] Android: resize with software rendering, reverted again (Bug 4669) --- src/render/software/SDL_render_sw.c | 6 ------ src/video/android/SDL_androidvideo.c | 12 ------------ src/video/android/SDL_androidvideo.h | 1 - 3 files changed, 19 deletions(-) diff --git a/src/render/software/SDL_render_sw.c b/src/render/software/SDL_render_sw.c index fd98b4c2d..088a0a5a5 100644 --- a/src/render/software/SDL_render_sw.c +++ b/src/render/software/SDL_render_sw.c @@ -82,11 +82,6 @@ SW_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event) static int SW_GetOutputSize(SDL_Renderer * renderer, int *w, int *h) { -#if defined(ANDROID) - extern void Android_GetScreenResolution(int *w, int *h); - Android_GetScreenResolution(w, h); - return 0; -#else SDL_Surface *surface = SW_ActivateRenderer(renderer); if (surface) { @@ -101,7 +96,6 @@ SW_GetOutputSize(SDL_Renderer * renderer, int *w, int *h) SDL_SetError("Software renderer doesn't have an output surface"); return -1; } -#endif } static int diff --git a/src/video/android/SDL_androidvideo.c b/src/video/android/SDL_androidvideo.c index 2a9e304c2..91e6e9973 100644 --- a/src/video/android/SDL_androidvideo.c +++ b/src/video/android/SDL_androidvideo.c @@ -237,18 +237,6 @@ Android_SetScreenResolution(int surfaceWidth, int surfaceHeight, int deviceWidth Android_ScreenRate = (int)rate; } -void -Android_GetScreenResolution(int *w, int *h) -{ - if (w) { - *w = Android_SurfaceWidth; - } - - if (h) { - *h = Android_SurfaceHeight; - } -} - void Android_SendResize(SDL_Window *window) { /* diff --git a/src/video/android/SDL_androidvideo.h b/src/video/android/SDL_androidvideo.h index f54396ea7..ef909967a 100644 --- a/src/video/android/SDL_androidvideo.h +++ b/src/video/android/SDL_androidvideo.h @@ -30,7 +30,6 @@ /* 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); -extern void Android_GetScreenResolution(int *w, int *h); /* Private display data */