Fixed build error on Linux
authorSam Lantinga
Tue, 09 May 2017 03:19:58 -0700
changeset 1099698cb4438d83e
parent 10995 b2a06697db74
child 10997 b6315b6bc32f
Fixed build error on Linux
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Tue May 09 10:10:42 2017 -0700
     1.2 +++ b/src/video/SDL_video.c	Tue May 09 03:19:58 2017 -0700
     1.3 @@ -3857,6 +3857,9 @@
     1.4  				   SDL_sqrt((double)den2));
     1.5  }
     1.6  
     1.7 +/*
     1.8 + * Functions used by iOS application delegates
     1.9 + */
    1.10  void SDL_OnApplicationWillTerminate()
    1.11  {
    1.12      SDL_SendAppEvent(SDL_APP_TERMINATING);
    1.13 @@ -3870,6 +3873,7 @@
    1.14  void SDL_OnApplicationWillResignActive()
    1.15  {
    1.16      SDL_VideoDevice *_this = SDL_GetVideoDevice();
    1.17 +
    1.18      if (_this) {
    1.19          SDL_Window *window;
    1.20          for (window = _this->windows; window != NULL; window = window->next) {
    1.21 @@ -3892,9 +3896,10 @@
    1.22  
    1.23  void SDL_OnApplicationDidBecomeActive()
    1.24  {
    1.25 +    SDL_VideoDevice *_this = SDL_GetVideoDevice();
    1.26 +
    1.27      SDL_SendAppEvent(SDL_APP_DIDENTERFOREGROUND);
    1.28  
    1.29 -    SDL_VideoDevice *_this = SDL_GetVideoDevice();
    1.30      if (_this) {
    1.31          SDL_Window *window;
    1.32          for (window = _this->windows; window != NULL; window = window->next) {