From 05b0c40ffa72bb73490fe671ee0d69b0584ed8aa Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 28 Feb 2011 09:26:35 -0800 Subject: [PATCH] Fixed setting draw color for clear --- Xcode-iPhoneOS/Template/SDL iOS Application/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xcode-iPhoneOS/Template/SDL iOS Application/main.c b/Xcode-iPhoneOS/Template/SDL iOS Application/main.c index c9cd557b3..311e6d5b8 100644 --- a/Xcode-iPhoneOS/Template/SDL iOS Application/main.c +++ b/Xcode-iPhoneOS/Template/SDL iOS Application/main.c @@ -23,7 +23,7 @@ render(SDL_Renderer *renderer) Uint8 r, g, b; /* Clear the screen */ - SDL_SetRenderDrawColor(0, 0, 0, 255); + SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255); SDL_SetRenderClear(renderer); /* Come up with a random rectangle */