Skip to content

Commit

Permalink
Fixed build error on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 9, 2017
1 parent 9ac3bb7 commit 8b7ae35
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/video/SDL_video.c
Expand Up @@ -3857,6 +3857,9 @@ SDL_ComputeDiagonalDPI(int hpix, int vpix, float hinches, float vinches)
SDL_sqrt((double)den2));
}

/*
* Functions used by iOS application delegates
*/
void SDL_OnApplicationWillTerminate()
{
SDL_SendAppEvent(SDL_APP_TERMINATING);
Expand All @@ -3870,6 +3873,7 @@ void SDL_OnApplicationDidReceiveMemoryWarning()
void SDL_OnApplicationWillResignActive()
{
SDL_VideoDevice *_this = SDL_GetVideoDevice();

if (_this) {
SDL_Window *window;
for (window = _this->windows; window != NULL; window = window->next) {
Expand All @@ -3892,9 +3896,10 @@ void SDL_OnApplicationWillEnterForeground()

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) {
Expand Down

0 comments on commit 8b7ae35

Please sign in to comment.