mirror of
https://github.com/encounter/SDL.git
synced 2025-12-16 08:27:05 +00:00
Android: try to fix resize with software rendering (bug 4669)
This commit is contained in:
@@ -237,6 +237,18 @@ 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)
|
||||
{
|
||||
/*
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
/* 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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user