瀏覽代碼

Wayland: Fixed drawing created cursors without transparency.

Philipp Wiesemann 10 年之前
父節點
當前提交
676041aa16
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/video/wayland/SDL_waylandmouse.c

+ 1 - 1
src/video/wayland/SDL_waylandmouse.c

@@ -174,7 +174,7 @@ Wayland_CreateCursor(SDL_Surface *surface, int hot_x, int hot_y)
         if (create_buffer_from_shm (data,
         if (create_buffer_from_shm (data,
                                     surface->w,
                                     surface->w,
                                     surface->h,
                                     surface->h,
-                                    WL_SHM_FORMAT_XRGB8888) < 0)
+                                    WL_SHM_FORMAT_ARGB8888) < 0)
         {
         {
             free (cursor->driverdata);
             free (cursor->driverdata);
             free (cursor);
             free (cursor);