diff options
author | Bert Münnich <ber.t@posteo.de> | 2016-08-06 15:27:58 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2016-08-06 15:27:58 +0200 |
commit | c280129cef4ff2e8667b8700c9bdf671fdd7c8ef (patch) | |
tree | f440d93fe935f2e68bb0460927097130160f97f0 /main.c | |
parent | aabc2bddbdeecdb2651394d90b10a9290a69b527 (diff) | |
download | nsxiv-c280129cef4ff2e8667b8700c9bdf671fdd7c8ef.tar.zst |
Use Xft for font loading and text drawing
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -386,8 +386,8 @@ void update_info(void) if (ow_info) { fn = strlen(files[fileidx].name); if (fn < l->size && - win_textwidth(files[fileidx].name, fn, true) + - win_textwidth(r->buf, r->p - r->buf, true) < win.w) + win_textwidth(&win.env, files[fileidx].name, fn, true) + + win_textwidth(&win.env, r->buf, r->p - r->buf, true) < win.w) { strncpy(l->buf, files[fileidx].name, l->size); } else { |