SDL_pen: fix eraser check

It looks like a copy and paste error.
This commit is contained in:
Wim Taymans 2025-02-12 10:03:57 +01:00 committed by Ryan C. Gordon
parent 54c7aa9c90
commit 9a802797d2
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ void SDL_SendPenTouch(Uint64 timestamp, SDL_PenID instance_id, SDL_Window *windo
if (eraser && ((input_state & SDL_PEN_INPUT_ERASER_TIP) == 0)) {
input_state |= SDL_PEN_INPUT_ERASER_TIP;
send_event = true;
} else if (!down && (input_state & SDL_PEN_INPUT_ERASER_TIP)) {
} else if (!eraser && (input_state & SDL_PEN_INPUT_ERASER_TIP)) {
input_state &= ~SDL_PEN_INPUT_ERASER_TIP;
send_event = true;
}