summaryrefslogtreecommitdiff
path: root/sys/dev/wsfont/files.wsfont
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-09-15 20:23:11 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-09-15 20:23:11 +0000
commit6759b09d281d276d3b3d54ffbef1c9980df9d67f (patch)
tree4a4c5917557819414a798bb184a102c0bf525cef /sys/dev/wsfont/files.wsfont
parent64393cf110217509a46347626cda13bdde46cf22 (diff)
Stop compiling the texte console rotation code #ifdef __zaurus__, but use
a flag in the rasops_info structure; drivers which may use it shall declare a specific attribute for the config(8) machinery, so that the necessary code is compiled in. In addition to this, rotated font computation is now done on-demand, and a list of unrotated-rotated font cookie pairs is kept, rather than rotating all built-in wsfonts at initialization time. No user-perceptible functional change. Tested matthieu@ uwe@, ok uwe@
Diffstat (limited to 'sys/dev/wsfont/files.wsfont')
-rw-r--r--sys/dev/wsfont/files.wsfont10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/wsfont/files.wsfont b/sys/dev/wsfont/files.wsfont
index eeda2ba84e0..354a2c9882a 100644
--- a/sys/dev/wsfont/files.wsfont
+++ b/sys/dev/wsfont/files.wsfont
@@ -1,4 +1,10 @@
-# $OpenBSD: files.wsfont,v 1.2 2003/04/14 10:42:28 miod Exp $
+# $OpenBSD: files.wsfont,v 1.3 2005/09/15 20:23:10 miod Exp $
# $NetBSD: files.wsfont,v 1.7 2000/11/21 11:44:45 tsutsui Exp $
-file dev/wsfont/wsfont.c wsdisplay
+# Note: `wsfont_glue' is only here to force the header file's name
+# hence it must be mentioned first.
+# This is similar to what rasops does - actually we are only interested
+# in getting the rasops_rotation attribute, without having to depend
+# on rasops being configured.
+file dev/wsfont/wsfont.c ((wsfont_glue & rasops_rotation) | wsdisplay)
+ needs-flag