From 612b41c451d3dad84b30806294c321d4903aa704 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 15 Aug 2024 12:40:02 +0200
Subject: [PATCH] camera: use cdevice SDL_Event union member
---
src/camera/SDL_camera.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/camera/SDL_camera.c b/src/camera/SDL_camera.c
index 160baebccc4e7..a99ea3805acec 100644
--- a/src/camera/SDL_camera.c
+++ b/src/camera/SDL_camera.c
@@ -1538,7 +1538,7 @@ void SDL_UpdateCamera(void)
SDL_Event event;
SDL_zero(event);
event.type = i->type;
- event.adevice.which = (Uint32) i->devid;
+ event.cdevice.which = (Uint32) i->devid;
SDL_PushEvent(&event);
}
SDL_free(i);