[SDL] SDL_VIDEOEXPOSE problems...

Glenn Maynard g_sdl at zewt.org
Fri Apr 11 18:28:01 PDT 2003


On Fri, Apr 11, 2003 at 10:03:51PM -0300, Eduardo B. Fonseca wrote:
> 	I'm having a problem with SDL_VIDEOEXPOSE. I put an SDL_EventState( 
> SDL_VIDEOEXPOSE, SDL_ENABLE) on my code, but I do not get any VIDEOEXPOSE 
> events...
> 
> 	Do I need to put the SDL_EventState in any special place in the code (before
> or after SDL_Init for example) ?

Make sure you do it after initializing the video system; when that
happens, the event system is reinitialized and the event mask is reset.

I don't know why the event system is tied to the video system; I'd like
to be able to use SDL for joystick input without using it for video
on some archs.  (Windows has some (solvable) trouble with this, but Linux
doesn't.)

-- 
Glenn Maynard




More information about the SDL mailing list