There's a function to do that... :)
authorSam Lantinga <slouken@libsdl.org>
Mon, 14 Mar 2011 23:16:05 -0700
changeset 5490 352473883732
parent 5489 e0c63a55b67d
child 5491 abdd970a65a8
There's a function to do that... :)
src/video/directfb/SDL_DirectFB_mouse.c
--- a/src/video/directfb/SDL_DirectFB_mouse.c	Mon Mar 14 23:14:51 2011 -0700
+++ b/src/video/directfb/SDL_DirectFB_mouse.c	Mon Mar 14 23:16:05 2011 -0700
@@ -372,15 +372,13 @@
     SDL_DFB_DEVICEDATA(_this);
 
     SDL_Mouse *mouse = SDL_GetMouse();
-    SDL_Cursor *cursor;
 
     mouse->CreateCursor = DirectFB_CreateCursor;
     mouse->ShowCursor = DirectFB_ShowCursor;
     mouse->WarpMouse = DirectFB_WarpMouse;
     mouse->FreeCursor = DirectFB_FreeCursor;
 
-    cursor = DirectFB_CreateDefaultCursor();
-    mouse->cursors = mouse->cur_cursor = cursor;
+    SDL_SetDefaultCursor(DirectFB_CreateDefaultCursor());
 
     devdata->num_mice = 1;
 }