There's a function to do that... :)
authorSam Lantinga <slouken@libsdl.org>
Mon, 14 Mar 2011 23:16:05 -0700
changeset 5490352473883732
parent 5489 e0c63a55b67d
child 5491 abdd970a65a8
There's a function to do that... :)
src/video/directfb/SDL_DirectFB_mouse.c
     1.1 --- a/src/video/directfb/SDL_DirectFB_mouse.c	Mon Mar 14 23:14:51 2011 -0700
     1.2 +++ b/src/video/directfb/SDL_DirectFB_mouse.c	Mon Mar 14 23:16:05 2011 -0700
     1.3 @@ -372,15 +372,13 @@
     1.4      SDL_DFB_DEVICEDATA(_this);
     1.5  
     1.6      SDL_Mouse *mouse = SDL_GetMouse();
     1.7 -    SDL_Cursor *cursor;
     1.8  
     1.9      mouse->CreateCursor = DirectFB_CreateCursor;
    1.10      mouse->ShowCursor = DirectFB_ShowCursor;
    1.11      mouse->WarpMouse = DirectFB_WarpMouse;
    1.12      mouse->FreeCursor = DirectFB_FreeCursor;
    1.13  
    1.14 -    cursor = DirectFB_CreateDefaultCursor();
    1.15 -    mouse->cursors = mouse->cur_cursor = cursor;
    1.16 +    SDL_SetDefaultCursor(DirectFB_CreateDefaultCursor());
    1.17  
    1.18      devdata->num_mice = 1;
    1.19  }