mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-16 09:48:26 +00:00
Android: try to fix resize with software rendering (bug 4669)
This commit is contained in:
parent
8a20d40d90
commit
12b92260cc
3 changed files with 19 additions and 0 deletions
|
@ -82,6 +82,11 @@ 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) {
|
||||
|
@ -96,6 +101,7 @@ SW_GetOutputSize(SDL_Renderer * renderer, int *w, int *h)
|
|||
SDL_SetError("Software renderer doesn't have an output surface");
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue