src/video/mir/SDL_mirmouse.c
changeset 10929 3a44f7762496
parent 10921 f426dbef4aa0
child 10990 b3c950a6fb09
equal deleted inserted replaced
10928:fff135f69aaf 10929:3a44f7762496
   138 static SDL_Cursor*
   138 static SDL_Cursor*
   139 MIR_CreateSystemCursor(SDL_SystemCursor id)
   139 MIR_CreateSystemCursor(SDL_SystemCursor id)
   140 {
   140 {
   141     char const* cursor_name = NULL;
   141     char const* cursor_name = NULL;
   142     SDL_Cursor* cursor      = MIR_CreateDefaultCursor();
   142     SDL_Cursor* cursor      = MIR_CreateDefaultCursor();
   143     MIR_Cursor* mir_cursor  = (MIR_Cursor*)cursor->driverdata;
   143     MIR_Cursor* mir_cursor;
   144 
   144 
   145     if (!cursor) {
   145     if (!cursor) {
   146         return NULL;
   146         return NULL;
   147     }
   147     }
       
   148 
       
   149     mir_cursor = (MIR_Cursor*)cursor->driverdata;
   148 
   150 
   149     switch(id) {
   151     switch(id) {
   150         case SDL_SYSTEM_CURSOR_ARROW:
   152         case SDL_SYSTEM_CURSOR_ARROW:
   151             cursor_name = MIR_mir_arrow_cursor_name;
   153             cursor_name = MIR_mir_arrow_cursor_name;
   152             break;
   154             break;