From c00d25a58020c1d5ecd902c330860189f1e03d1c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 8 Nov 2011 00:02:47 -0500 Subject: [PATCH] Fixed a typo, we should set the driverdata if we are 3.2 or newer. --- src/video/uikit/SDL_uikitvideo.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/uikit/SDL_uikitvideo.m b/src/video/uikit/SDL_uikitvideo.m index ba154e875..6a0768d3a 100644 --- a/src/video/uikit/SDL_uikitvideo.m +++ b/src/video/uikit/SDL_uikitvideo.m @@ -178,7 +178,7 @@ static void UIKit_DeleteDevice(SDL_VideoDevice * device) // UIScreenMode showed up in 3.2 (the iPad and later). We're // misusing this supports_multiple_displays flag here for that. - if (!SDL_UIKit_supports_multiple_displays) { + if (SDL_UIKit_supports_multiple_displays) { UIScreenMode *uimode = [uiscreen currentMode]; [uimode retain]; // once for the desktop_mode [uimode retain]; // once for the current_mode