Browse Source

Removed redundant condition in src/events/SDL_pen.c

Petar Popovic 11 tháng trước cách đây
mục cha
commit
0e909d2785
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/events/SDL_pen.c

+ 1 - 1
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;