what is this?
i use some sdl function in timer callback.
these function are sdl_flip sdl_removetimer sdl_addtimer.
could be this the problem?
thanks
what is this?
i use some sdl function in timer callback.
these function are sdl_flip sdl_removetimer sdl_addtimer.
could be this the problem?
thanks
root wrote:
what is this?
i use some sdl function in timer callback.
these function are sdl_flip sdl_removetimer sdl_addtimer.
could be this the problem?
yes. AFAIK, timers run in a seperate thread, but you should only call
blit operations in the thread that opened the screen. i usually use
SDL_PushEvent to generate a SDL_USEREVENT that i handle in the main
eventloop. there i read the parameters from the event.data fields, so i
know what has to be done and do the blitting stuf.
best regards …
clemens
i use some sdl function in timer callback.
these function are sdl_flip sdl_removetimer sdl_addtimer.
could be this the problem?
Yep. Don’t call any SDL functions from a timer callback. Set a global flag
(or counter) to notify your main loop that the timer has expired, and then
return.
JeffOn Saturday 10 April 2004 05:25 am, root wrote: