SDL_VIDEOEXPOSE problems

Hi,

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) ?

Is there anything else that needs to be enabled ?

Thanks in advance!–
Eduardo B. Fonseca
ebf at aedsolucoes.com.br
22:00:30 up 4 days, 10:59, 1 user, load average: 0.03, 0.12, 0.15

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.)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) ?


Glenn Maynard

Hi Glen,

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

Just did this. Nothing changed. Still getting no SDL_VIDEOEXPOSE events…
:frowning:

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.)

It would be very nice indeed.–
Eduardo B. Fonseca
ebf at aedsolucoes.com.br
23:22:49 up 4 days, 12:22, 1 user, load average: 0.73, 0.29, 0.10

BTW, I’m using XFree86 4.3

Eduardo.On Friday 11 April 2003 22:26, Glenn Maynard wrote:

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.)


Eduardo B. Fonseca
ebf at aedsolucoes.com.br
23:33:20 up 4 days, 12:32, 1 user, load average: 0.35, 0.33, 0.21

Hi Glen,

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

Just did this. Nothing changed. Still getting no SDL_VIDEOEXPOSE events…

It may be that the X server isn’t generating any expose events…
I haven’t looked at the code in a while, but you might take a glance under
the debugger and find out if that’s the case.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment