offb.c fix (Re: PB2000 (pismo) install feedback
Henry Worth
haworth at ncal.verio.com
Sat Mar 25 19:26:47 EST 2000
Ben,
I've found the real problem with the linux-pmac_benh offb.c.
Simple pointer arithmetic problem. This fixes both the
"burnout" effect and the colormap problems.
Henry
*** offb.c.orig4 Sat Mar 25 00:20:05 2000
--- offb.c Sat Mar 25 00:20:44 2000
***************
*** 914,920 ****
case cmap_r128:
/* Set palette index & data */
out_8(info2->cmap_adr + 0xb0, regno);
! out_le32((unsigned *)(info2->cmap_adr) + 0xb4,
(red << 16 | green << 8 | blue));
break;
case cmap_M3B:
--- 914,920 ----
case cmap_r128:
/* Set palette index & data */
out_8(info2->cmap_adr + 0xb0, regno);
! out_le32((unsigned *)(info2->cmap_adr + 0xb4),
(red << 16 | green << 8 | blue));
break;
case cmap_M3B:
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list