patch-2.1.29 linux/drivers/sbus/char/cgsix.c
Next file: linux/drivers/sbus/char/fb.h
Previous file: linux/drivers/sbus/char/bpp.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Wed Mar 5 17:04:32 1997
- Orig file:
v2.1.28/linux/drivers/sbus/char/cgsix.c
- Orig date:
Mon Dec 30 02:00:04 1996
diff -u --recursive --new-file v2.1.28/linux/drivers/sbus/char/cgsix.c linux/drivers/sbus/char/cgsix.c
@@ -1,4 +1,4 @@
-/* $Id: cgsix.c,v 1.21 1996/12/23 10:16:05 ecd Exp $
+/* $Id: cgsix.c,v 1.22 1997/02/02 02:12:41 ecd Exp $
* cgsix.c: cgsix frame buffer driver
*
* Copyright (C) 1996 Miguel de Icaza (miguel@nuclecu.unam.mx)
@@ -553,7 +553,7 @@
static void cg6_blitc(unsigned short charattr, int xoff, int yoff)
{
- unsigned char attrib = charattr >> 8;
+ unsigned char attrib = CHARATTR_TO_SUNCOLOR(charattr);
unsigned char *p = &vga_font[((unsigned char)charattr) << 4];
GX_BLITC_START(attrib)
GX_BLITC_BODY1(xoff, yoff, gx->font=((*p++) << 24))
@@ -562,7 +562,7 @@
static void cg6_setw(int xoff, int yoff, unsigned short c, int count)
{
- unsigned char attrib = c >> 8;
+ unsigned char attrib = CHARATTR_TO_SUNCOLOR(c);
unsigned char *p = &vga_font[((unsigned char)c) << 4];
register unsigned char *q;
register uint l;
@@ -584,7 +584,7 @@
static void cg6_cpyw(int xoff, int yoff, unsigned short *p, int count)
{
- unsigned char attrib = *p >> 8;
+ unsigned char attrib = CHARATTR_TO_SUNCOLOR(*p);
unsigned char *p1, *p2, *p3, *p4;
GX_BLITC_START(attrib)
if (count >= 4) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov