Mercurial > vim
comparison src/gui_gtk_x11.c @ 26201:a0f4b96a813a v8.2.3632
patch 8.2.3632: GTK3: undercurl does not get removed properly
Commit: https://github.com/vim/vim/commit/9cd9385db7d1d2b2dc38a511d121e366a5dae511
Author: Yamagi <yamagi@yamagi.org>
Date: Sat Nov 20 20:42:29 2021 +0000
patch 8.2.3632: GTK3: undercurl does not get removed properly
Problem: GTK3: undercurl does not get removed properly.
Solution: Set the cairo cursor first. (closes https://github.com/vim/vim/issues/9170)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 20 Nov 2021 21:45:03 +0100 |
parents | 5a1850512676 |
children | c3b046ce88fd |
comparison
equal
deleted
inserted
replaced
26200:aeff0cbd3cb3 | 26201:a0f4b96a813a |
---|---|
5423 cairo_set_line_width(cr, 1.0); | 5423 cairo_set_line_width(cr, 1.0); |
5424 cairo_set_line_cap(cr, CAIRO_LINE_CAP_BUTT); | 5424 cairo_set_line_cap(cr, CAIRO_LINE_CAP_BUTT); |
5425 cairo_set_source_rgba(cr, | 5425 cairo_set_source_rgba(cr, |
5426 gui.spcolor->red, gui.spcolor->green, gui.spcolor->blue, | 5426 gui.spcolor->red, gui.spcolor->green, gui.spcolor->blue, |
5427 gui.spcolor->alpha); | 5427 gui.spcolor->alpha); |
5428 for (i = FILL_X(col); i < FILL_X(col + cells); ++i) | 5428 cairo_move_to(cr, FILL_X(col) + 1, y - 2 + 0.5); |
5429 for (i = FILL_X(col) + 1; i < FILL_X(col + cells); ++i) | |
5429 { | 5430 { |
5430 offset = val[i % 8]; | 5431 offset = val[i % 8]; |
5431 cairo_line_to(cr, i, y - offset + 0.5); | 5432 cairo_line_to(cr, i, y - offset + 0.5); |
5432 } | 5433 } |
5433 cairo_stroke(cr); | 5434 cairo_stroke(cr); |