comparison src/gui_w32.c @ 12317:2a8890b80923 v8.0.1038

patch 8.0.1038: strike-through text not supported commit https://github.com/vim/vim/commit/cf4b00c856ef714482d8d060332ac9a4d74e6b88 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 2 18:33:56 2017 +0200 patch 8.0.1038: strike-through text not supported Problem: Strike-through text not supported. Solution: Add support for the "strikethrough" attribute. (Christian Brabandt, Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Sat, 02 Sep 2017 18:45:04 +0200
parents c4caf49c8bf4
children 68d7bc045dbe
comparison
equal deleted inserted replaced
12316:a1d3a6d6af2c 12317:2a8890b80923
6425 /* Note: LineTo() excludes the last pixel in the line. */ 6425 /* Note: LineTo() excludes the last pixel in the line. */
6426 LineTo(s_hdc, FILL_X(col + len), y); 6426 LineTo(s_hdc, FILL_X(col + len), y);
6427 DeleteObject(SelectObject(s_hdc, old_pen)); 6427 DeleteObject(SelectObject(s_hdc, old_pen));
6428 } 6428 }
6429 6429
6430 /* Strikethrough */
6431 if (flags & DRAW_STRIKE)
6432 {
6433 hpen = CreatePen(PS_SOLID, 1, gui.currSpColor);
6434 old_pen = SelectObject(s_hdc, hpen);
6435 y = FILL_Y(row + 1) - gui.char_height/2;
6436 MoveToEx(s_hdc, FILL_X(col), y, NULL);
6437 /* Note: LineTo() excludes the last pixel in the line. */
6438 LineTo(s_hdc, FILL_X(col + len), y);
6439 DeleteObject(SelectObject(s_hdc, old_pen));
6440 }
6441
6430 /* Undercurl */ 6442 /* Undercurl */
6431 if (flags & DRAW_UNDERC) 6443 if (flags & DRAW_UNDERC)
6432 { 6444 {
6433 int x; 6445 int x;
6434 int offset; 6446 int offset;