[SDL] Flickering and division by zero in Windows

Andre de Leiradella leiradella at bigfoot.com
Sat Feb 24 19:01:43 PST 2007


Hi All,

I'm writing an SDL application but am having trouble with flickering. I 
tried all combinations of flags (SDL_SWSURFACE, SDL_HWSURFACE, 
SDL_DOUBLEBUF, SDL_NOFRAME, SDL_FULLSCREEN etc.) but with no luck.

I can't show the smallest piece of code that reproduces the problem 
because the program is scripted in Lua. But it just blits a 8-bit image 
over the screen and draws a semi-transparent rectangle over the screen 
(with SDL_gfx) and then either calls SDL_Flip or SDL_UpdateRect (I tried 
both). The result is always the same: the rectangle flickers.

I'm using Windows and the precompiled DLL of SDL-1.2.11. I have compiled 
SDL_gfx-2.0.15 into a DLL myself. I'm forcing the windib driver using a 
putenv just before SDL_Init.

Also, when I have a division by zero inside an script, the program just 
hangs instead of returning positive or negative infinity. I've read in 
this list that DirectX messes with FPU flags, but I'm using windib.

Does anyone knows what the cause of those can be?

Thanks in advance,

André


More information about the SDL mailing list