comparison XCodeiPhoneOS/Demos/src/happy.c @ 3093:375ee92745e8

Fixed iPhone demos
author Sam Lantinga <slouken@libsdl.org>
date Tue, 17 Mar 2009 03:56:21 +0000
parents 9dde605c7540
children
comparison
equal deleted inserted replaced
3092:cad1aefa2ed9 3093:375ee92745e8
56 srcRect.h = HAPPY_FACE_SIZE; 56 srcRect.h = HAPPY_FACE_SIZE;
57 dstRect.w = HAPPY_FACE_SIZE; 57 dstRect.w = HAPPY_FACE_SIZE;
58 dstRect.h = HAPPY_FACE_SIZE; 58 dstRect.h = HAPPY_FACE_SIZE;
59 59
60 /* fill background in with black */ 60 /* fill background in with black */
61 SDL_RenderFill(0, 0, 0, 255, NULL); 61 SDL_SetRenderDrawColor(0, 0, 0, 255);
62 SDL_RenderFill(NULL);
62 63
63 /* 64 /*
64 loop through all the happy faces: 65 loop through all the happy faces:
65 - update position 66 - update position
66 - update velocity (if boundary is hit) 67 - update velocity (if boundary is hit)