浏览代码

wayland: Don't add the nanosecond timestamp offset to the pre-conversion millisecond value

(cherry picked from commit 6c61a94a4b6683ed7117685a21a5c8dbc1558fa9)
Frank Praznik 3 月之前
父节点
当前提交
b494897b3d
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      src/video/wayland/SDL_waylandevents.c

+ 0 - 1
src/video/wayland/SDL_waylandevents.c

@@ -199,7 +199,6 @@ static Uint64 Wayland_EventTimestampMSToNS(Uint32 wl_timestamp_ms)
         timestamp_offset += SDL_MS_TO_NS(SDL_UINT64_C(0x100000000));
         timestamp_offset += SDL_MS_TO_NS(SDL_UINT64_C(0x100000000));
     }
     }
     last = wl_timestamp_ms;
     last = wl_timestamp_ms;
-    wl_timestamp_ms += timestamp_offset;
 
 
     return SDL_MS_TO_NS(wl_timestamp_ms) + timestamp_offset;
     return SDL_MS_TO_NS(wl_timestamp_ms) + timestamp_offset;
 }
 }