Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57384
b: refs/heads/master
c: f2c1386
h: refs/heads/master
v: v3
  • Loading branch information
Antonino Daplas authored and David S. Miller committed Jun 5, 2007
1 parent b09e2fc commit 8708d67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2fa9e05e3876198d8ab31624fe84512a0a44b45
refs/heads/master: f2c138638687a7ffbf0d2a0e7addfec7bab9a765
17 changes: 8 additions & 9 deletions trunk/drivers/video/sunxvr2500.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct s3d_info {
unsigned int depth;
unsigned int fb_size;

u32 pseudo_palette[256];
u32 pseudo_palette[16];
};

static int __devinit s3d_get_props(struct s3d_info *sp)
Expand All @@ -52,15 +52,14 @@ static int s3d_setcolreg(unsigned regno,
{
u32 value;

if (regno >= 256)
return 1;
if (regno < 16) {
red >>= 8;
green >>= 8;
blue >>= 8;

red >>= 8;
green >>= 8;
blue >>= 8;

value = (blue << 24) | (green << 16) | (red << 8);
((u32 *)info->pseudo_palette)[regno] = value;
value = (blue << 24) | (green << 16) | (red << 8);
((u32 *)info->pseudo_palette)[regno] = value;
}

return 0;
}
Expand Down

0 comments on commit 8708d67

Please sign in to comment.