-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: 71c4be5665abfa9e52ccec9369dcca057602a7b4:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit 71c4be5665abfa9e52ccec9369dcca057602a7b4
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Fri Apr 12 07:54:15 2013 +0000

    Simplify and correct lerp expression.

diff --git a/src/screen.C b/src/screen.C

index f7ff0fff64fc5b47a6592920d5eb841cb3e2dc19..

index ..28f89e2b891cff1d6a8b24a5f7c611428128ae54 100644

--- a/src/screen.C
+++ b/src/screen.C
@@ -1899,7 +1899,8 @@ rxvt_term::scr_touch (bool refresh) NOTHROW
 void
 rxvt_term::scr_move_to (int y, int len) NOTHROW
 {
-  scr_changeview ((top_row - nrow) * (len - y) / len + (nrow - 1));
+  // lerp (y, 0, len, top_row, nrow - 1)
+  scr_changeview (top_row + (nrow - 1 - top_row) * y / len);
 }

 /* ------------------------------------------------------------------------- */

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 11:42:26 2024