mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-03 16:36:25 +00:00
wayland: Silence unused variable warning
'vd' and 'd' are only used if SDL_USE_LIBDBUS is set.
(cherry picked from commit 21c9f5304d
)
This commit is contained in:

committed by
Frank Praznik

parent
11d38fc23b
commit
62c151d044
@@ -971,8 +971,6 @@ void Wayland_RecreateCursors(void)
|
|||||||
void Wayland_InitMouse(void)
|
void Wayland_InitMouse(void)
|
||||||
{
|
{
|
||||||
SDL_Mouse *mouse = SDL_GetMouse();
|
SDL_Mouse *mouse = SDL_GetMouse();
|
||||||
SDL_VideoDevice *vd = SDL_GetVideoDevice();
|
|
||||||
SDL_VideoData *d = vd->internal;
|
|
||||||
|
|
||||||
mouse->CreateCursor = Wayland_CreateCursor;
|
mouse->CreateCursor = Wayland_CreateCursor;
|
||||||
mouse->CreateSystemCursor = Wayland_CreateSystemCursor;
|
mouse->CreateSystemCursor = Wayland_CreateSystemCursor;
|
||||||
@@ -1021,7 +1019,10 @@ void Wayland_InitMouse(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SDL_USE_LIBDBUS
|
#ifdef SDL_USE_LIBDBUS
|
||||||
/* The DBus cursor properties are only needed when manually loading themes and cursors.
|
SDL_VideoDevice *vd = SDL_GetVideoDevice();
|
||||||
|
SDL_VideoData *d = vd->internal;
|
||||||
|
|
||||||
|
/* The D-Bus cursor properties are only needed when manually loading themes and system cursors.
|
||||||
* If the cursor shape protocol is present, the compositor will handle it internally.
|
* If the cursor shape protocol is present, the compositor will handle it internally.
|
||||||
*/
|
*/
|
||||||
if (!d->cursor_shape_manager) {
|
if (!d->cursor_shape_manager) {
|
||||||
|
Reference in New Issue
Block a user