comparison Xcode-iPhoneOS/Demos/src/happy.c @ 5217:b0797947dd1c

You don't need to copy the pixels into the streaming texture's pixel data. This behavior is defined specifically to optimize the UpdateTexture path.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 06 Feb 2011 20:56:21 -0800
parents 25ad4a50d34f
children
comparison
equal deleted inserted replaced
5216:25ad4a50d34f 5217:b0797947dd1c
162 if (delay < 0) { 162 if (delay < 0) {
163 delay = 0; 163 delay = 0;
164 } else if (delay > MILLESECONDS_PER_FRAME) { 164 } else if (delay > MILLESECONDS_PER_FRAME) {
165 delay = MILLESECONDS_PER_FRAME; 165 delay = MILLESECONDS_PER_FRAME;
166 } 166 }
167 //SDL_Delay(delay); 167 SDL_Delay(delay);
168 } 168 }
169 169
170 /* cleanup */ 170 /* cleanup */
171 SDL_DestroyTexture(texture); 171 SDL_DestroyTexture(texture);
172 /* shutdown SDL */ 172 /* shutdown SDL */