Strange things in SDL_UpdateRect(...)

I have a simple event loop setup, to try to learn SDL better. Whenever I
move the mouse I draw a line from it’s previous position, no strangie, but I
also make an UpdateRect() on the area the line covers, however, UpdateArea
only works in the upper left fourth of the screen if I want to update the
other 3 fourths I have to use Upd.A.(screenbuf, 0, 0, 0, 0)…
The resolution is 80060024, SW_SURFACE, but the real res. might be 16,
because the updates are pretty slow. I’ve tried it both in windowed and
fullscreen. Both are the same; any UpdateRect beyond the x=800/2 pixel or
y=600/2 pixel gives no visible effect.

Sorry for the looong explaination…

Oscar Campbell

I have a simple event loop setup, to try to learn SDL better. Whenever I
move the mouse I draw a line from it’s previous position, no strangie, but I
also make an UpdateRect() on the area the line covers, however, UpdateArea
only works in the upper left fourth of the screen

Send me example code privately, and I’ll take a look.

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/