mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Removed redundant condition in src/events/SDL_pen.c
This commit is contained in:

committed by
Sam Lantinga

parent
191f3ecbbc
commit
0e909d2785
@@ -349,7 +349,7 @@ void SDL_SendPenTouch(Uint64 timestamp, SDL_PenID instance_id, const SDL_Window
|
|||||||
|
|
||||||
if (send_event) {
|
if (send_event) {
|
||||||
const SDL_EventType evtype = down ? SDL_EVENT_PEN_DOWN : SDL_EVENT_PEN_UP;
|
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_Event event;
|
||||||
SDL_zero(event);
|
SDL_zero(event);
|
||||||
event.ptouch.type = evtype;
|
event.ptouch.type = evtype;
|
||||||
|
Reference in New Issue
Block a user