Explorar o código

Fixed window and backbuffer size on Android

Sam Lantinga %!s(int64=3) %!d(string=hai) anos
pai
achega
068d3da366
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video/android/SDL_androidvideo.c

+ 1 - 1
src/video/android/SDL_androidvideo.c

@@ -279,7 +279,7 @@ void Android_SendResize(SDL_Window *window)
     }
 
     if (window) {
-        SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_RESIZED, Android_SurfaceWidth, Android_SurfaceWidth);
+        SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_RESIZED, Android_SurfaceWidth, Android_SurfaceHeight);
     }
 }