[SDL] Timing issues - SDL_Delay

CptAJ antonioetayo at gmail.com
Tue Jul 17 20:57:08 PDT 2007


Quite right, my friend. I guess I figured that since the program was so very 
simple there wouldn't be any problems with that. Murphy's law once again...

Making time an int certainly fixed the problem. I didn't know I could use an
 int since the SDL docs said SDL_Delay takes an Uint32. I guess the conditional
 was pretty silly too given that its unsigned =/

So what is it that happens, the substraction comes back negative and the Uint32
takes on a "random" value as a result?

Thanks for the help bro.



More information about the SDL mailing list