[SDL] Re: Colorful Mousecursrors with SDL

Clemens Kirchgatterer clemens at 1541.org
Fri Jan 28 09:38:30 PST 2005

J Inacio <jinacio3 at yahoo.com.br> wrote:

>  1 - keep a record of your mouse (i.e: oldX, oldY) and
> if oldX != x you do a repaint at (oldX, oldY, cursorW,
> cursorH)
>  2 - repaint eveything at every frame.

3 - backup the rectangle of the screen surface directly under the cursor
before you blit the cursor. befor you start scrolling and repainting the
next frame, blit the backup back to the screen. at last, calculate new
cursor position, do next backup and start over.


More information about the SDL mailing list