mirror of https://github.com/libsdl-org/SDL.git
SDL_pen: fix eraser check
It looks like a copy and paste error.
This commit is contained in:
parent
54c7aa9c90
commit
9a802797d2
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue