Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
No variable shadowing, reuse the size variable
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 29, 2012
1 parent 5bbb77f commit 49b6b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/uikit/SDL_uikitvideo.m
Expand Up @@ -321,7 +321,7 @@ static void UIKit_DeleteDevice(SDL_VideoDevice * device)

// Add the main screen.
UIScreen *uiscreen = [UIScreen mainScreen];
const CGSize size = [uiscreen bounds].size;
CGSize size = [uiscreen bounds].size;

if (UIKit_AddDisplay(uiscreen, size) < 0) {
return -1;
Expand All @@ -334,7 +334,7 @@ static void UIKit_DeleteDevice(SDL_VideoDevice * device)
for (UIScreen *uiscreen in [UIScreen screens]) {
// Only add the other screens
if (uiscreen != [UIScreen mainScreen]) {
const CGSize size = [uiscreen bounds].size;
size = [uiscreen bounds].size;
if (UIKit_AddDisplay(uiscreen, size) < 0) {
return -1;
}
Expand Down

0 comments on commit 49b6b5c

Please sign in to comment.