Преглед изворни кода

Fixed build

(cherry picked from commit 8ae962c90457b28e058e5611383a21c3e315aab7)
Sam Lantinga пре 3 месеци
родитељ
комит
579fc161f0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/events/SDL_pen.c

+ 1 - 1
src/events/SDL_pen.c

@@ -565,7 +565,7 @@ void SDL_SendPenButton(Uint64 timestamp, SDL_PenID instance_id, SDL_Window *wind
             event.pbutton.down = down;
             SDL_PushEvent(&event);
 
-            if (window && !pen_touching || (pen_touching == instance_id)) {
+            if (window && (!pen_touching || (pen_touching == instance_id))) {
                 SDL_Mouse *mouse = SDL_GetMouse();
                 if (mouse && mouse->pen_mouse_events) {
                     SDL_SendMouseButton(timestamp, window, SDL_PEN_MOUSEID, button + 1, down);