X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/fa9a4599720703932d1c4f16b9aeee1f91f96263..c63a87cd936c1eeef14c4c21572e5b782d3df4bc:/st.c diff --git a/st.c b/st.c index 031272f..fbcd9e0 100644 --- a/st.c +++ b/st.c @@ -3488,9 +3488,6 @@ xloadfonts(char *fontstr, double fontsize) if (usedfontsize < 0) { FcPatternGetDouble(dc.font.match->pattern, FC_PIXEL_SIZE, 0, &fontval); - FcPatternAddDouble(pattern, FC_PIXEL_SIZE, fontval); - if (xloadfont(&dc.font, pattern)) - die("st: can't open font %s\n", fontstr); usedfontsize = fontval; if (fontsize == 0) defaultfontsize = fontval; @@ -4474,8 +4471,6 @@ usage(void) int main(int argc, char *argv[]) { - uint cols = 80, rows = 24; - xw.l = xw.t = 0; xw.isfixed = False; xw.cursor = cursorshape;