summaryrefslogtreecommitdiff
path: root/patches/st-vertcenter-20160819-023225e.diff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-05-01 14:36:36 -0700
committerLuke Smith <luke@lukesmith.xyz>2018-05-01 14:36:36 -0700
commitcd357e5c67d9101ca14c4706b50878cea8cf1300 (patch)
tree0ad3a0d70ebd4820c629f1031ac3a95953466ef4 /patches/st-vertcenter-20160819-023225e.diff
parent60ea12d97195f65d257894ce73284985b98b4622 (diff)
Big cleanup and some redundant bindings added
Diffstat (limited to 'patches/st-vertcenter-20160819-023225e.diff')
-rw-r--r--patches/st-vertcenter-20160819-023225e.diff44
1 files changed, 0 insertions, 44 deletions
diff --git a/patches/st-vertcenter-20160819-023225e.diff b/patches/st-vertcenter-20160819-023225e.diff
deleted file mode 100644
index e3fca96..0000000
--- a/patches/st-vertcenter-20160819-023225e.diff
+++ /dev/null
@@ -1,44 +0,0 @@
-diff --git a/st.c b/st.c
-index 2594c65..7285237 100644
---- a/st.c
-+++ b/st.c
-@@ -268,6 +268,7 @@ typedef struct {
- int w, h; /* window width and height */
- int ch; /* char height */
- int cw; /* char width */
-+ int cyo; /* char y offset */
- char state; /* focus, redraw, visible */
- int cursor; /* cursor style */
- } XWindow;
-@@ -3359,6 +3360,7 @@ xloadfonts(char *fontstr, double fontsize)
- /* Setting character width and height. */
- xw.cw = ceilf(dc.font.width * cwscale);
- xw.ch = ceilf(dc.font.height * chscale);
-+ xw.cyo = ceilf(dc.font.height * (chscale - 1) / 2);
-
- FcPatternDel(pattern, FC_SLANT);
- FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
-@@ -3584,7 +3586,7 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x
- font = &dc.bfont;
- frcflags = FRC_BOLD;
- }
-- yp = winy + font->ascent;
-+ yp = winy + font->ascent + xw.cyo;
- }
-
- /* Lookup character index with default font. */
-@@ -3796,12 +3798,12 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
-
- /* 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 + xw.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 + xw.cyo + 2 * dc.font.ascent / 3,
- width, 1);
- }
-