Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
be silent about explicitly unhandled mouse modes
[st.git]
/
x.c
diff --git
a/x.c
b/x.c
index
2cd76d0
..
5828a3b
100644
(file)
--- a/
x.c
+++ b/
x.c
@@
-763,7
+763,6
@@
xsetcolorname(int x, const char *name)
if (!BETWEEN(x, 0, dc.collen))
return 1;
if (!BETWEEN(x, 0, dc.collen))
return 1;
-
if (!xloadcolor(x, name, &ncolor))
return 1;
if (!xloadcolor(x, name, &ncolor))
return 1;
@@
-1244,15
+1243,10
@@
xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x
fontpattern = FcFontSetMatch(0, fcsets, 1,
fcpattern, &fcres);
fontpattern = FcFontSetMatch(0, fcsets, 1,
fcpattern, &fcres);
- /*
- * Allocate memory for the new cache entry.
- */
+ /* Allocate memory for the new cache entry. */
if (frclen >= frccap) {
frccap += 16;
if (frclen >= frccap) {
frccap += 16;
- if (!frc)
- frc = xmalloc(frccap * sizeof(Fontcache));
- else
- frc = xrealloc(frc, frccap * sizeof(Fontcache));
+ frc = xrealloc(frc, frccap * sizeof(Fontcache));
}
frc[frclen].font = XftFontOpenPattern(xw.dpy,
}
frc[frclen].font = XftFontOpenPattern(xw.dpy,
@@
-1769,7
+1763,6
@@
kpress(XEvent *ev)
ttywrite(buf, len, 1);
}
ttywrite(buf, len, 1);
}
-
void
cmessage(XEvent *e)
{
void
cmessage(XEvent *e)
{