Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci correctly draw alpha fonts with an uneven number...



details:   https://anonhg.NetBSD.org/src/rev/ce60e31a0c78
branches:  trunk
changeset: 778444:ce60e31a0c78
user:      macallan <macallan%NetBSD.org@localhost>
date:      Mon Mar 26 21:59:01 2012 +0000

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

diffstat:

 sys/dev/pci/radeonfb.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r c4bb0385032a -r ce60e31a0c78 sys/dev/pci/radeonfb.c
--- a/sys/dev/pci/radeonfb.c    Mon Mar 26 18:26:10 2012 +0000
+++ b/sys/dev/pci/radeonfb.c    Mon Mar 26 21:59:01 2012 +0000
@@ -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 @@
        }
        /* 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);
        }
 



Home | Main Index | Thread Index | Old Index