[Commits] SDL: Fixed build error on Linux

libsdl.org revision control commits-owner at libsdl.org
Tue May 9 11:13:32 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/98cb4438d83e
changeset: 10996:98cb4438d83e
user:      Sam Lantinga <slouken at libsdl.org>
date:      Tue May 09 03:19:58 2017 -0700
description:
Fixed build error on Linux

diffstat:

 src/video/SDL_video.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r b2a06697db74 -r 98cb4438d83e src/video/SDL_video.c
--- a/src/video/SDL_video.c	Tue May 09 10:10:42 2017 -0700
+++ b/src/video/SDL_video.c	Tue May 09 03:19:58 2017 -0700
@@ -3857,6 +3857,9 @@
 				   SDL_sqrt((double)den2));
 }
 
+/*
+ * Functions used by iOS application delegates
+ */
 void SDL_OnApplicationWillTerminate()
 {
     SDL_SendAppEvent(SDL_APP_TERMINATING);
@@ -3870,6 +3873,7 @@
 void SDL_OnApplicationWillResignActive()
 {
     SDL_VideoDevice *_this = SDL_GetVideoDevice();
+
     if (_this) {
         SDL_Window *window;
         for (window = _this->windows; window != NULL; window = window->next) {
@@ -3892,9 +3896,10 @@
 
 void SDL_OnApplicationDidBecomeActive()
 {
+    SDL_VideoDevice *_this = SDL_GetVideoDevice();
+
     SDL_SendAppEvent(SDL_APP_DIDENTERFOREGROUND);
 
-    SDL_VideoDevice *_this = SDL_GetVideoDevice();
     if (_this) {
         SDL_Window *window;
         for (window = _this->windows; window != NULL; window = window->next) {


More information about the commits mailing list