Module Name:    src
Committed By:   macallan
Date:           Mon Mar 26 21:59:01 UTC 2012

Modified Files:
        src/sys/dev/pci: radeonfb.c

Log Message:
correctly draw alpha fonts with an uneven number of pixels per characters
radeon is weird how it handles leftovers


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/dev/pci/radeonfb.c

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/pci/radeonfb.c
diff -u src/sys/dev/pci/radeonfb.c:1.59 src/sys/dev/pci/radeonfb.c:1.60
--- src/sys/dev/pci/radeonfb.c:1.59	Thu Mar 15 05:47:19 2012
+++ src/sys/dev/pci/radeonfb.c	Mon Mar 26 21:59:01 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: radeonfb.c,v 1.59 2012/03/15 05:47:19 macallan Exp $ */
+/*	$NetBSD: radeonfb.c,v 1.60 2012/03/26 21:59:01 macallan Exp $ */
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.59 2012/03/15 05:47:19 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.60 2012/03/26 21:59:01 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2785,7 +2785,10 @@ radeonfb_putchar_aa8(void *cookie, int r
 	}
 	/* if we have pixels left in latch write them out */
 	if ((i & 3) != 0) {
-		latch = latch << ((4 - (i & 3)) << 3);	
+		/*
+		 * radeon is weird - apparently leftover pixels are written
+		 * from the middle, not from the left as everything else
+		 */
 		PUT32(sc, RADEON_HOST_DATA0, latch);
 	}
 

Reply via email to