From ce01128adf849c613c52ba44a641a4a6031c2ce0 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Fri, 12 May 2017 23:01:04 +0200 Subject: [PATCH] Fixed warnings about shadowed global variable. Found by buildbot. --- src/video/SDL_video.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 7fd6913e8b0a2..de588e4ad1704 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -3872,8 +3872,6 @@ 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) { @@ -3896,8 +3894,6 @@ void SDL_OnApplicationWillEnterForeground() void SDL_OnApplicationDidBecomeActive() { - SDL_VideoDevice *_this = SDL_GetVideoDevice(); - SDL_SendAppEvent(SDL_APP_DIDENTERFOREGROUND); if (_this) {