emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 0220391: Fix cairo scrolling for side-by-side win


From: Robert Pluim
Subject: [Emacs-diffs] emacs-26 0220391: Fix cairo scrolling for side-by-side windows
Date: Mon, 10 Dec 2018 08:22:14 -0500 (EST)

branch: emacs-26
commit 0220391c0015bdec0e658c7ab206c6226bb335ca
Author: Ari Roponen <address@hidden>
Commit: Robert Pluim <address@hidden>

    Fix cairo scrolling for side-by-side windows
    
    Backport: Fixes Bug#33442.
    
    * src/xterm.c (x_scroll_run) [USE_CAIRO]: Fix scrolling for
    side-by-side split windows.  (Bug#31288)
    
    (cherry picked from commit 6e362a32bc9d21f73a0f29ca6f45481edeea6f29)
---
 src/xterm.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index 577c87a..97a0d97 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -4251,6 +4251,7 @@ x_scroll_run (struct window *w, struct run *run)
 #ifdef USE_CAIRO
   if (FRAME_CR_CONTEXT (f))
     {
+      int wx = WINDOW_LEFT_EDGE_X (w);
       cairo_surface_t *s = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
                                                       width, height);
       cairo_t *cr = cairo_create (s);
@@ -4261,8 +4262,8 @@ x_scroll_run (struct window *w, struct run *run)
 
       cr = FRAME_CR_CONTEXT (f);
       cairo_save (cr);
-      cairo_set_source_surface (cr, s, 0, to_y);
-      cairo_rectangle (cr, x, to_y, width, height);
+      cairo_set_source_surface (cr, s, wx, to_y);
+      cairo_rectangle (cr, wx, to_y, width, height);
       cairo_fill (cr);
       cairo_restore (cr);
       cairo_surface_destroy (s);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]