[SDL_TIZEN] code clean up
[platform/upstream/SDL.git] / src / video / tizen / SDL_tizenmouse.c
index 81a4158..ef4f1d2 100755 (executable)
@@ -105,14 +105,14 @@ create_buffer_from_shm(Tizen_CursorData *d, int width, int height, uint32_t form
     shm_fd = wayland_create_tmp_file(size);
     if (shm_fd < 0)
     {
-        fprintf(stderr, "creating mouse cursor buffer failed!\n");
+        SDL_LogError(SDL_LOG_CATEGORY_ASSERT, "creating mouse cursor buffer failed!\n");
         return -1;
     }
 
     d->shm_data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, shm_fd, 0);
     if (d->shm_data == MAP_FAILED) {
         d->shm_data = NULL;
-        fprintf (stderr, "mmap () failed\n");
+        SDL_LogError(SDL_LOG_CATEGORY_ASSERT, "mmap () failed\n");
         close (shm_fd);
         return -1;
     }
@@ -288,7 +288,6 @@ _tizen_cb_event_mousedown_change(void *data, int type, void *event)
 
     int x, y;
     _tizen_get_mouseXY(window, (int)e->x, (int)e->y, &x, &y);
-    SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, "mouse down (%d x %d)", x, y);
     if(Tizen_isTouchIndicator(window, wind->rotation, x, y))
     {
         ModelMatrixTranslateInit(window, wind->rotation);
@@ -319,7 +318,6 @@ _tizen_cb_event_mouseup_change(void *data, int type, void *event)
 
     int x, y;
     _tizen_get_mouseXY(window, (int)e->x, (int)e->y, &x, &y);
-    SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, "mouse up (%d x %d)", x, y);
     SDL_SendMouseMotion(window, 0, 0, x, y);
     SDL_SendMouseButton(window, 0, SDL_RELEASED, SDL_BUTTON_LEFT);
 
@@ -344,7 +342,6 @@ _tizen_cb_event_mousemove_change(void *data, int type, void *event)
 
     int x, y;
     _tizen_get_mouseXY(window, (int)e->x, (int)e->y, &x, &y);
-    //SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, "mouse move (%d x %d)",e->x,e->y);
     SDL_SendMouseMotion(window, 0, 0, x, y);
 
     Tizen_OnTouch(_this,1,e->multi.device,ACTION_POINTER_MOVE, x, y, 1.0f);