src/video/android/SDL_androidvideo.c
changeset 5001 77df56570442
parent 4998 a514bfe6952a
child 5262 b530ef003506
     1.1 --- a/src/video/android/SDL_androidvideo.c	Thu Jan 13 18:03:56 2011 -0800
     1.2 +++ b/src/video/android/SDL_androidvideo.c	Thu Jan 13 18:31:15 2011 -0800
     1.3 @@ -29,6 +29,7 @@
     1.4  #include "../SDL_sysvideo.h"
     1.5  #include "../SDL_pixels_c.h"
     1.6  #include "../../events/SDL_events_c.h"
     1.7 +#include "../../events/SDL_windowevents_c.h"
     1.8  
     1.9  #include "SDL_androidvideo.h"
    1.10  #include "SDL_androidevents.h"
    1.11 @@ -63,6 +64,8 @@
    1.12  int Android_ScreenHeight = 0;
    1.13  Uint32 Android_ScreenFormat = SDL_PIXELFORMAT_UNKNOWN;
    1.14  
    1.15 +/* Currently only one window */
    1.16 +SDL_Window *Android_Window = NULL;
    1.17  
    1.18  static int
    1.19  Android_Available(void)
    1.20 @@ -158,6 +161,10 @@
    1.21      Android_ScreenWidth = width;
    1.22      Android_ScreenHeight = height;   
    1.23      Android_ScreenFormat = format;
    1.24 +
    1.25 +    if (Android_Window) {
    1.26 +        SDL_SendWindowEvent(Android_Window, SDL_WINDOWEVENT_RESIZED, width, height);
    1.27 +    }
    1.28  }
    1.29  
    1.30  /* vi: set ts=4 sw=4 expandtab: */