Commit 9a6cba2b authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu

Fix cairo scrolling for left scroll bars case

* src/xterm.c (x_scroll_run) [USE_CAIRO]: Fix scrolling by unusing
WINDOW_LEFT_EDGE_X.  (Bug#31288)
parent b40db491
Pipeline #1082 failed with stage
in 49 minutes and 22 seconds
...@@ -4315,7 +4315,6 @@ x_scroll_run (struct window *w, struct run *run) ...@@ -4315,7 +4315,6 @@ x_scroll_run (struct window *w, struct run *run)
#ifdef USE_CAIRO #ifdef USE_CAIRO
if (FRAME_CR_CONTEXT (f)) if (FRAME_CR_CONTEXT (f))
{ {
int wx = WINDOW_LEFT_EDGE_X (w);
cairo_surface_t *s = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, cairo_surface_t *s = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
width, height); width, height);
cairo_t *cr = cairo_create (s); cairo_t *cr = cairo_create (s);
...@@ -4326,8 +4325,8 @@ x_scroll_run (struct window *w, struct run *run) ...@@ -4326,8 +4325,8 @@ x_scroll_run (struct window *w, struct run *run)
cr = FRAME_CR_CONTEXT (f); cr = FRAME_CR_CONTEXT (f);
cairo_save (cr); cairo_save (cr);
cairo_set_source_surface (cr, s, wx, to_y); cairo_set_source_surface (cr, s, x, to_y);
cairo_rectangle (cr, wx, to_y, width, height); cairo_rectangle (cr, x, to_y, width, height);
cairo_fill (cr); cairo_fill (cr);
cairo_restore (cr); cairo_restore (cr);
cairo_surface_destroy (s); cairo_surface_destroy (s);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment