diff options
author | 2019-03-18 16:10:39 +0000 | |
---|---|---|
committer | 2019-03-18 16:10:39 +0000 | |
commit | 6db384e5ca9825d1e10127c915cc688edadfbac9 (patch) | |
tree | e40db1c58adec62d986e14f19395c70f3e2f0f75 | |
parent | repair a few more yoda compares (diff) | |
download | wireguard-openbsd-6db384e5ca9825d1e10127c915cc688edadfbac9.tar.xz wireguard-openbsd-6db384e5ca9825d1e10127c915cc688edadfbac9.zip |
Modify rasops_list_font_cb() to not filter out fonts with different
sizes than the currently used one. This allows getting a list of all
loaded fonts when using the WSDISPLAYIO_LSFONT ioctl.
On top of allowing to see all fonts which are currently loaded when
invoking the -l option of wsfontload(8), it also removes the confusion
as to why we might reach the WSDISPLAY_MAXFONTCOUNT limit faster than
expected when loading more fonts.
OK sthen@
-rw-r--r-- | sys/dev/rasops/rasops.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/rasops/rasops.c b/sys/dev/rasops/rasops.c index f9a017214cf..6bb38705211 100644 --- a/sys/dev/rasops/rasops.c +++ b/sys/dev/rasops/rasops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rasops.c,v 1.58 2019/01/09 11:23:32 fcambus Exp $ */ +/* $OpenBSD: rasops.c,v 1.59 2019/03/18 16:10:39 fcambus Exp $ */ /* $NetBSD: rasops.c,v 1.35 2001/02/02 06:01:01 marcus Exp $ */ /*- @@ -1899,10 +1899,6 @@ rasops_list_font_cb(void *cbarg, struct wsdisplay_font *font) { struct rasops_list_font_ctx *ctx = cbarg; - if (font->fontheight != ctx->ri->ri_font->fontheight || - font->fontwidth != ctx->ri->ri_font->fontwidth) - return 0; - if (ctx->cnt-- == 0) { ctx->font = font; return 1; |