[vlc-commits] [Git][videolan/vlc][master] video_window: use VLC_TICK_MIN to init last_left_press
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Fri Sep 13 05:46:09 UTC 2024
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
551b1bd8 by Steve Lhomme at 2024-09-13T05:25:43+00:00
video_window: use VLC_TICK_MIN to init last_left_press
- - - - -
1 changed file:
- src/video_output/video_window.c
Changes:
=====================================
src/video_output/video_window.c
=====================================
@@ -146,7 +146,7 @@ static void vout_display_window_MouseEvent(vlc_window_t *window,
{
case VLC_WINDOW_MOUSE_MOVED:
vlc_mouse_SetPosition(m, ev->x, ev->y);
- state->mouse.last_left_press = INT64_MIN;
+ state->mouse.last_left_press = VLC_TICK_MIN;
break;
case VLC_WINDOW_MOUSE_PRESSED:
@@ -156,11 +156,11 @@ static void vout_display_window_MouseEvent(vlc_window_t *window,
{
const vlc_tick_t now = vlc_tick_now();
- if (state->mouse.last_left_press != INT64_MIN
+ if (state->mouse.last_left_press != VLC_TICK_MIN
&& now - state->mouse.last_left_press < DOUBLE_CLICK_TIME)
{
m->b_double_click = true;
- state->mouse.last_left_press = INT64_MIN;
+ state->mouse.last_left_press = VLC_TICK_MIN;
}
else
state->mouse.last_left_press = now;
@@ -395,7 +395,7 @@ vlc_window_t *vout_display_window_New(vout_thread_t *vout)
vlc_mutex_init(&state->lock);
vlc_mouse_Init(&state->mouse.window);
vlc_mouse_Init(&state->mouse.video);
- state->mouse.last_left_press = INT64_MIN;
+ state->mouse.last_left_press = VLC_TICK_MIN;
state->mouse.event = NULL;
state->vout = vout;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/551b1bd8067087bb80be0194d3b617bd83fcd90c
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/551b1bd8067087bb80be0194d3b617bd83fcd90c
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list