Fixed build

(cherry picked from commit 8ae962c904)
This commit is contained in:
Sam Lantinga committed 2025-04-29 19:57:15 -07:00
1 parent 22e968af4e
commit 579fc161f0
1 file changed
+1 -1
+1 -1
View File
@@ -565,7 +565,7 @@ void SDL_SendPenButton(Uint64 timestamp, SDL_PenID instance_id, SDL_Window *wind
event.pbutton.down = down;
SDL_PushEvent(&event);
if (window && !pen_touching || (pen_touching == instance_id)) {
if (window && (!pen_touching || (pen_touching == instance_id))) {
SDL_Mouse *mouse = SDL_GetMouse();
if (mouse && mouse->pen_mouse_events) {
SDL_SendMouseButton(timestamp, window, SDL_PEN_MOUSEID, button + 1, down);