From f3959a39509e88a394c3a814023a7afd0c0ec348 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 22 Apr 2018 16:05:56 +0300 Subject: [PATCH] Use scaled display start position when calculating lagless vsync slice positions. --- custom.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom.cpp b/custom.cpp index 2eca1909..9c833e79 100644 --- a/custom.cpp +++ b/custom.cpp @@ -8264,8 +8264,12 @@ static void scanlinesleep(int currline, int nextline) static void linesync_first_last_line(int *first, int *last) { + int x, y, w, h; *first = minfirstline; *last = maxvpos_display; + get_custom_raw_limits(&w, &h, &x, &y); + if (y > 0) + *first += y; } static bool linesync_beam_single(void) -- 2.47.3