[SDL] Flickering and division by zero in Windows
Lilith Calbridge
lilith at dcccd.edu
Sat Feb 24 18:15:17 PST 2007
>>> On 2/24/2007 at 9:01 PM, Andre de Leiradella
<leiradella at bigfoot.com> wrote:
> 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.
How would you express infinity in binary?
Lilith
More information about the SDL
mailing list