mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 15:10:49 +00:00
wayland: Silence unused variable warning
'vd' and 'd' are only used if SDL_USE_LIBDBUS is set.
This commit is contained in:
parent
dac6af4ba6
commit
21c9f5304d
1 changed files with 4 additions and 3 deletions
|
|
@ -1050,8 +1050,6 @@ void Wayland_RecreateCursors(void)
|
|||
void Wayland_InitMouse(void)
|
||||
{
|
||||
SDL_Mouse *mouse = SDL_GetMouse();
|
||||
SDL_VideoDevice *vd = SDL_GetVideoDevice();
|
||||
SDL_VideoData *d = vd->internal;
|
||||
|
||||
mouse->CreateCursor = Wayland_CreateCursor;
|
||||
mouse->CreateSystemCursor = Wayland_CreateSystemCursor;
|
||||
|
|
@ -1100,7 +1098,10 @@ void Wayland_InitMouse(void)
|
|||
}
|
||||
|
||||
#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 (!d->cursor_shape_manager) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue