From: Po Lu Date: Fri, 5 Nov 2021 07:27:36 +0000 (+0800) Subject: Fix xwidget scrolling X-Git-Tag: emacs-29.0.90~3671^2~140 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=650e5e8e9217767a499403348a1177251b89151b;p=emacs.git Fix xwidget scrolling * src/xterm.c (x_scroll_run): Use from_y and height. --- diff --git a/src/xterm.c b/src/xterm.c index 756a8dd1edf..9e0499ca0f2 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -4411,14 +4411,12 @@ x_scroll_run (struct window *w, struct run *run) { int window_y = view->y + view->clip_top; int window_height = view->clip_bottom - view->clip_top; - int min_y = min (from_y, to_y); - int max_y = max (from_y, to_y); Emacs_Rectangle r1, r2, result; r1.x = w->pixel_left; - r1.y = min_y; + r1.y = from_y; r1.width = w->pixel_width; - r1.height = max_y - min_y; + r1.height = height; r2 = r1; r2.y = window_y; r2.height = window_height;