[Commits] SDL: Wayland: Fixed storing a theme cursor which is never used i...

libsdl.org revision control commits-owner at libsdl.org
Wed Mar 16 14:15:21 PDT 2016


details:   https://hg.libsdl.org/SDL/rev/ac9831ff70d1
changeset: 10119:ac9831ff70d1
user:      Philipp Wiesemann <philipp.wiesemann at arcor.de>
date:      Wed Mar 16 22:09:23 2016 +0100
description:
Wayland: Fixed storing a theme cursor which is never used in video data.

diffstat:

 src/video/wayland/SDL_waylandvideo.c |  1 -
 src/video/wayland/SDL_waylandvideo.h |  1 -
 2 files changed, 0 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 7552aa4c1c6d -r ac9831ff70d1 src/video/wayland/SDL_waylandvideo.c
--- a/src/video/wayland/SDL_waylandvideo.c	Fri Mar 11 08:33:47 2016 -0800
+++ b/src/video/wayland/SDL_waylandvideo.c	Wed Mar 16 22:09:23 2016 +0100
@@ -253,7 +253,6 @@
     } else if (strcmp(interface, "wl_shm") == 0) {
         d->shm = wl_registry_bind(registry, id, &wl_shm_interface, 1);
         d->cursor_theme = WAYLAND_wl_cursor_theme_load(NULL, 32, d->shm);
-        d->default_cursor = WAYLAND_wl_cursor_theme_get_cursor(d->cursor_theme, "left_ptr");
 
 #ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
     } else if (strcmp(interface, "qt_touch_extension") == 0) {
diff -r 7552aa4c1c6d -r ac9831ff70d1 src/video/wayland/SDL_waylandvideo.h
--- a/src/video/wayland/SDL_waylandvideo.h	Fri Mar 11 08:33:47 2016 -0800
+++ b/src/video/wayland/SDL_waylandvideo.h	Wed Mar 16 22:09:23 2016 +0100
@@ -42,7 +42,6 @@
     struct wl_compositor *compositor;
     struct wl_shm *shm;
     struct wl_cursor_theme *cursor_theme;
-    struct wl_cursor *default_cursor;
     struct wl_pointer *pointer;
     struct wl_shell *shell;
 


More information about the commits mailing list