Cursor with SDL
I downloaded few examples and organized cursor moving in such a way: I load certain image on a surface (for example: SDL_Surface *cursor), then react on mouse motion and draw cursor surface every time on a new position. Without doublebuffer it works fine, but with this damn useful **** I need to call SDL_Flip() every time cursor moved. As it happens very frequently, I have a big loss of perfomance. I limited cursor drawing by time - 3 times per second. Looks not very impressive.
Someone knows another way?
Instead of blitting the cursor yourself, use SDL_CreateCursor() SDL_SetCursor() SDL_FreeCursor() http://sdldoc.csn.ul.ie/sdlcreatecursor.php
But I'll get only monochrome cusor, right? As I'm writing a graphical engine - that's not enough :(