From: Jurriaan <thu...@xs...> - 2004-04-09 18:02:52
|
From: Jurriaan <thu...@xs...> Date: Fri, Apr 09, 2004 at 07:44:07PM +0200 Bah, new try with correct whitespace: diff -Br -U 3 -N linux-2.6.5/drivers/video/aty/radeon_accel.c linux-2.6.5-new/drivers/video/aty/radeon_accel.c --- linux-2.6.5/drivers/video/aty/radeon_accel.c 2004-02-18 04:58:34.000000000 +0100 +++ linux-2.6.5-new/drivers/video/aty/radeon_accel.c 2004-04-09 19:26:43.000000000 +0200 @@ -13,7 +13,10 @@ rinfo->dp_gui_master_cntl /* contains, like GMC_DST_32BPP */ | GMC_BRUSH_SOLID_COLOR | ROP3_P); - OUTREG(DP_BRUSH_FRGD_CLR, region->color); + if (radeon_get_dstbpp(rinfo->depth) != DST_8BPP) + OUTREG(DP_BRUSH_FRGD_CLR, rinfo->pseudo_palette[region->color]); + else + OUTREG(DP_BRUSH_FRGD_CLR, region->color); OUTREG(DP_WRITE_MSK, 0xffffffff); OUTREG(DP_CNTL, (DST_X_LEFT_TO_RIGHT | DST_Y_TOP_TO_BOTTOM)); Jurriaan -- Don't ever trust the needle It lies Queensryche - Operation Mindcrime Debian (Unstable) GNU/Linux 2.6.5-mm1 2x6062 bogomips 0.88 0.90 |