From 0e909d2785cddf375d7246b71b542b4e4f9f408b Mon Sep 17 00:00:00 2001
From: Petar Popovic <[EMAIL REDACTED]>
Date: Thu, 3 Oct 2024 21:15:04 +0200
Subject: [PATCH] Removed redundant condition in src/events/SDL_pen.c
---
src/events/SDL_pen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/events/SDL_pen.c b/src/events/SDL_pen.c
index 9d234efa8777a..65f7720853fc9 100644
--- a/src/events/SDL_pen.c
+++ b/src/events/SDL_pen.c
@@ -349,7 +349,7 @@ void SDL_SendPenTouch(Uint64 timestamp, SDL_PenID instance_id, const SDL_Window
if (send_event) {
const SDL_EventType evtype = down ? SDL_EVENT_PEN_DOWN : SDL_EVENT_PEN_UP;
- if (send_event && SDL_EventEnabled(evtype)) {
+ if (SDL_EventEnabled(evtype)) {
SDL_Event event;
SDL_zero(event);
event.ptouch.type = evtype;