summaryrefslogtreecommitdiff
path: root/present/present_scmd.c
diff options
context:
space:
mode:
authorRoman Gilg <subdiff@gmail.com>2019-05-27 23:01:53 +0200
committerRoman Gilg <subdiff@gmail.com>2020-02-18 16:31:02 +0100
commit1e44861aba449eec81d69b1da3a6e6f88676e04f (patch)
tree3c2fa4cd83cd7663176ef74cbe5e274ae61e6624 /present/present_scmd.c
parentd3c1b223cec2b475c4f1661d7e5dc5238d08d8f6 (diff)
downloadxserver-1e44861aba449eec81d69b1da3a6e6f88676e04f.tar.gz
present: Rename window_msc variable in present function
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 <subdiff@gmail.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'present/present_scmd.c')
-rw-r--r--present/present_scmd.c4
1 files changed, 2 insertions, 2 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,