Module Name:    src
Committed By:   macallan
Date:           Tue Jan  3 23:13:59 UTC 2012

Modified Files:
        src/sys/dev/rasops: rasops.h

Log Message:
add a macro to identify alpha fonts


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/rasops/rasops.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/rasops/rasops.h
diff -u src/sys/dev/rasops/rasops.h:1.28 src/sys/dev/rasops/rasops.h:1.29
--- src/sys/dev/rasops/rasops.h:1.28	Wed Dec 28 08:36:46 2011
+++ src/sys/dev/rasops/rasops.h	Tue Jan  3 23:13:59 2012
@@ -1,4 +1,4 @@
-/* 	$NetBSD: rasops.h,v 1.28 2011/12/28 08:36:46 macallan Exp $ */
+/* 	$NetBSD: rasops.h,v 1.29 2012/01/03 23:13:59 macallan Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -143,6 +143,7 @@ struct rasops_info {
 			  (ri->ri_optfont.data != NULL)) ? \
 			 &ri->ri_optfont : ri->ri_font
 
+#define FONT_IS_ALPHA(f) ((f)->fontwidth <= (f)->stride)
 /*
  * rasops_init().
  *

Reply via email to