Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57385
b: refs/heads/master
c: e7e8cc5
h: refs/heads/master
i:
  57383: b09e2fc
v: v3
  • Loading branch information
Antonino Daplas authored and David S. Miller committed Jun 5, 2007
1 parent 8708d67 commit 27d40d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: f2c138638687a7ffbf0d2a0e7addfec7bab9a765
refs/heads/master: e7e8cc5ae63c39dbbbb5f14c5120bdf2d931fac9
6 changes: 4 additions & 2 deletions trunk/drivers/video/sunxvr500.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct e3d_info {
u32 fb8_0_off;
u32 fb8_1_off;

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

static int __devinit e3d_get_props(struct e3d_info *ep)
Expand Down Expand Up @@ -126,7 +126,9 @@ static int e3d_setcolreg(unsigned regno,
blue_8 = blue >> 8;

value = (blue_8 << 24) | (green_8 << 16) | (red_8 << 8);
((u32 *)info->pseudo_palette)[regno] = value;

if (info->fix.visual == FB_VISUAL_TRUECOLOR && regno < 16)
((u32 *)info->pseudo_palette)[regno] = value;


red_10 = red >> 6;
Expand Down

0 comments on commit 27d40d4

Please sign in to comment.