summaryrefslogtreecommitdiff
path: root/src/radeon_driver.c
diff options
context:
space:
mode:
authorAlex Deucher <alex@samba.(none)>2007-08-26 14:13:06 -0400
committerAlex Deucher <alex@samba.(none)>2007-08-26 14:13:06 -0400
commitf36720377737210c985b196d9a988efdd767f1c7 (patch)
tree50f3723b71853f8333f73385e2d128b98f0568a5 /src/radeon_driver.c
parentf2b13f1457bf860b075310d3962254be0ed7bea3 (diff)
RADEON: fix depth 16 palette for real this time
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r--src/radeon_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index e445b9e4..158e1e46 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -2856,7 +2856,7 @@ static void RADEONLoadPalette(ScrnInfoPtr pScrn, int numColors,
case 16:
for (i = 0; i < numColors; i++) {
index = indices[i];
-
+
if (i <= 31) {
for (j = 0; j < 8; j++) {
lut_r[index * 8 + j] = colors[index].red << 8;
@@ -2874,7 +2874,7 @@ static void RADEONLoadPalette(ScrnInfoPtr pScrn, int numColors,
lut_r[index] = colors[index].red << 8;
lut_g[index] = colors[index].green << 8;
lut_b[index] = colors[index].blue << 8;
- }
+ }
break;
}