From 1e44861aba449eec81d69b1da3a6e6f88676e04f Mon Sep 17 00:00:00 2001 From: Roman Gilg Date: Mon, 27 May 2019 23:01:53 +0200 Subject: [PATCH] present: Rename window_msc variable in present function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The value is not the current msc of the window, but the target value the client sets independently of the window speicific msc offset. Make this clearer. Signed-off-by: Roman Gilg Reviewed-by: Michel Dänzer --- present/present_scmd.c | 4 ++-- present/present_wnmd.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/present/present_scmd.c b/present/present_scmd.c index d47f2dba7..fa800e99c 100644 --- a/present/present_scmd.c +++ b/present/present_scmd.c @@ -648,7 +648,7 @@ present_scmd_pixmap(WindowPtr window, SyncFence *wait_fence, SyncFence *idle_fence, uint32_t options, - uint64_t window_msc, + uint64_t target_window_msc, uint64_t divisor, uint64_t remainder, present_notify_ptr notifies, @@ -688,7 +688,7 @@ present_scmd_pixmap(WindowPtr window, window_priv->msc = crtc_msc; } - target_msc = present_get_target_msc(window_msc + window_priv->msc_offset, + target_msc = present_get_target_msc(target_window_msc + window_priv->msc_offset, crtc_msc, divisor, remainder, diff --git a/present/present_wnmd.c b/present/present_wnmd.c index 8894d99af..c9108e0e2 100644 --- a/present/present_wnmd.c +++ b/present/present_wnmd.c @@ -555,7 +555,7 @@ present_wnmd_pixmap(WindowPtr window, SyncFence *wait_fence, SyncFence *idle_fence, uint32_t options, - uint64_t window_msc, + uint64_t target_window_msc, uint64_t divisor, uint64_t remainder, present_notify_ptr notifies, @@ -585,7 +585,7 @@ present_wnmd_pixmap(WindowPtr window, window_priv->msc = crtc_msc; } - target_msc = present_get_target_msc(window_msc + window_priv->msc_offset, + target_msc = present_get_target_msc(target_window_msc + window_priv->msc_offset, crtc_msc, divisor, remainder,