diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-09-04 20:18:30 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-09-04 20:18:30 +0530 |
commit | 54c46dc5bab7f924e3bbd203a6d04807c97fd720 (patch) | |
tree | 3f09f56e47122d73d290f0cccc9ab0fc1fc2e39c /patches | |
parent | 9e87513f847505cd22188018f12293f3c51c6098 (diff) |
applying boxdraw patch and adding vertcenter patch
Diffstat (limited to 'patches')
-rw-r--r-- | patches/08-st-vertcenter-20180320-6ac8c8a.diff | 51 | ||||
-rw-r--r-- | patches/10th-ligatures-scrollback-20210824-0.8.4.diff (renamed from patches/08th-ligatures-scrollback-20210824-0.8.4.diff) | 0 | ||||
-rw-r--r-- | patches/11th-st-externalpipe-0.8.4.diff (renamed from patches/10th-st-externalpipe-0.8.4.diff) | 0 |
3 files changed, 51 insertions, 0 deletions
diff --git a/patches/08-st-vertcenter-20180320-6ac8c8a.diff b/patches/08-st-vertcenter-20180320-6ac8c8a.diff new file mode 100644 index 0000000..61f5c25 --- /dev/null +++ b/patches/08-st-vertcenter-20180320-6ac8c8a.diff @@ -0,0 +1,51 @@ +--- a/x.c Tue Mar 20 00:28:57 2018 ++++ b/x.c Tue Mar 20 00:29:02 2018 +@@ -80,6 +80,7 @@ + int w, h; /* window width and height */ + int ch; /* char height */ + int cw; /* char width */ ++ int cyo; /* char y offset */ + int mode; /* window state/mode flags */ + int cursor; /* cursor style */ + } TermWindow; +@@ -949,6 +950,7 @@ + /* Setting character width and height. */ + win.cw = ceilf(dc.font.width * cwscale); + win.ch = ceilf(dc.font.height * chscale); ++ win.cyo = ceilf(dc.font.height * (chscale - 1) / 2); + + FcPatternDel(pattern, FC_SLANT); + FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC); +@@ -1130,7 +1132,7 @@ + FcCharSet *fccharset; + int i, f, numspecs = 0; + +- for (i = 0, xp = winx, yp = winy + font->ascent; i < len; ++i) { ++ for (i = 0, xp = winx, yp = winy + font->ascent + win.cyo; i < len; ++i) { + /* Fetch rune and mode for current glyph. */ + rune = glyphs[i].u; + mode = glyphs[i].mode; +@@ -1155,7 +1157,7 @@ + font = &dc.bfont; + frcflags = FRC_BOLD; + } +- yp = winy + font->ascent; ++ yp = winy + font->ascent + win.cyo; + } + + /* Lookup character index with default font. */ +@@ -1371,12 +1373,12 @@ + + /* Render underline and strikethrough. */ + if (base.mode & ATTR_UNDERLINE) { +- XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent + 1, ++ XftDrawRect(xw.draw, fg, winx, winy + win.cyo + dc.font.ascent + 1, + width, 1); + } + + if (base.mode & ATTR_STRUCK) { +- XftDrawRect(xw.draw, fg, winx, winy + 2 * dc.font.ascent / 3, ++ XftDrawRect(xw.draw, fg, winx, winy + win.cyo + 2 * dc.font.ascent / 3, + width, 1); + } + diff --git a/patches/08th-ligatures-scrollback-20210824-0.8.4.diff b/patches/10th-ligatures-scrollback-20210824-0.8.4.diff index 94e842a..94e842a 100644 --- a/patches/08th-ligatures-scrollback-20210824-0.8.4.diff +++ b/patches/10th-ligatures-scrollback-20210824-0.8.4.diff diff --git a/patches/10th-st-externalpipe-0.8.4.diff b/patches/11th-st-externalpipe-0.8.4.diff index 297d746..297d746 100644 --- a/patches/10th-st-externalpipe-0.8.4.diff +++ b/patches/11th-st-externalpipe-0.8.4.diff |