소스 검색

touch: don't compare mouse_touch_events to zero; it's a bool.

Ryan C. Gordon 5 달 전
부모
커밋
367c8d7c7b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/events/SDL_touch.c

+ 1 - 1
src/events/SDL_touch.c

@@ -415,7 +415,7 @@ void SDL_SendTouchMotion(Uint64 timestamp, SDL_TouchID id, SDL_FingerID fingerid
     }
 
     // SDL_HINT_MOUSE_TOUCH_EVENTS: if not set, discard synthetic touch events coming from platform layer
-    if (mouse->mouse_touch_events == 0) {
+    if (!mouse->mouse_touch_events) {
         if (id == SDL_MOUSE_TOUCHID) {
             return;
         }