[SDL] Re: Colorful Mousecursrors with SDL
jinacio3 at yahoo.com.br
Thu Jan 27 10:33:48 PST 2005
--- Daniel <post at daniel-pomrehn.de> escreveu:
There are two easy ways (without h/w accell):
1 - keep a record of your mouse (i.e: oldX, oldY) and
if oldX != x you do a repaint at (oldX, oldY, cursorW,
2 - repaint eveything at every frame.
Hope I helped,
> Hi :)
> > 1. Hide the system cursor (check SDL API)
> > 2. When you draw your graphics, also draw a
> SDL_Surface at the
> > location of the mouse cursor. Voila!
> Thank you for the answer. the cursor works now, but
> there is one problem
> with it:
> When I move the curosr I must repaint the Place,
> from which the cursor had
> moved. How can I do that? I know, how I can to it
> theoratically, but there
> is the problem, that the background, which has to be
> repainted can scroll.
> So I don't know, what I have to paint there.
> Thanks in advance
> SDL mailing list
> SDL at libsdl.org
Yahoo! Acesso Grátis - Instale o discador do Yahoo! agora. http://br.acesso.yahoo.com/ - Internet rápida e grátis
More information about the SDL