Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199660
b: refs/heads/master
c: a652883
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Jun 3, 2010
1 parent 5d5d5ae commit 6967230
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: ee227c577cde47f78e2df359f9c32ba047060767
refs/heads/master: a652883a244901742d6c9733a9eebdf72e3114ea
9 changes: 6 additions & 3 deletions trunk/drivers/video/aty/mach64_accel.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void atyfb_copyarea(struct fb_info *info, const struct fb_copyarea *area)
void atyfb_fillrect(struct fb_info *info, const struct fb_fillrect *rect)
{
struct atyfb_par *par = (struct atyfb_par *) info->par;
u32 color = rect->color, dx = rect->dx, width = rect->width, rotation = 0;
u32 color, dx = rect->dx, width = rect->width, rotation = 0;

if (par->asleep)
return;
Expand All @@ -253,8 +253,11 @@ void atyfb_fillrect(struct fb_info *info, const struct fb_fillrect *rect)
return;
}

color |= (rect->color << 8);
color |= (rect->color << 16);
if (info->fix.visual == FB_VISUAL_TRUECOLOR ||
info->fix.visual == FB_VISUAL_DIRECTCOLOR)
color = ((u32 *)(info->pseudo_palette))[rect->color];
else
color = rect->color;

if (info->var.bits_per_pixel == 24) {
/* In 24 bpp, the engine is in 8 bpp - this requires that all */
Expand Down

0 comments on commit 6967230

Please sign in to comment.