src/video/raspberry/SDL_rpimouse.c
changeset 12924 9cbdc68e4a5e
parent 12922 db02dca46a9e
equal deleted inserted replaced
12923:73091a9e72f7 12924:9cbdc68e4a5e
   126     mouse = SDL_GetMouse();
   126     mouse = SDL_GetMouse();
   127     if (mouse == NULL) {
   127     if (mouse == NULL) {
   128         return -1;
   128         return -1;
   129     }
   129     }
   130     
   130     
   131     if (cursor == global_cursor) {
       
   132         return 0;
       
   133     }
       
   134 
       
   135     if (cursor != global_cursor) {
   131     if (cursor != global_cursor) {
   136         if (global_cursor != NULL) {
   132         if (global_cursor != NULL) {
   137             curdata = (RPI_CursorData *) global_cursor->driverdata;
   133             curdata = (RPI_CursorData *) global_cursor->driverdata;
   138             if (curdata && curdata->element > DISPMANX_NO_HANDLE) {
   134             if (curdata && curdata->element > DISPMANX_NO_HANDLE) {
   139                 update = vc_dispmanx_update_start(0);
   135                 update = vc_dispmanx_update_start(0);