Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13478
b: refs/heads/master
c: 81d3e14
h: refs/heads/master
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Nov 9, 2005
1 parent ebf79e9 commit 221fadf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 120ddb41f18c2d41702af561f4acfbcbd8d6fb46
refs/heads/master: 81d3e147ec9ffc6ef04b5f05afa4bef22487b32b
4 changes: 3 additions & 1 deletion trunk/drivers/video/cfbimgblt.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@ static u32 cfb_tab32[] = {
#define LEFT_POS(bpp) (32 - bpp)
#define SHIFT_HIGH(val, bits) ((val) >> (bits))
#define SHIFT_LOW(val, bits) ((val) << (bits))
#define BIT_NR(b) (7 - (b))
#else
#define LEFT_POS(bpp) (0)
#define SHIFT_HIGH(val, bits) ((val) << (bits))
#define SHIFT_LOW(val, bits) ((val) >> (bits))
#define BIT_NR(b) (b)
#endif

static inline void color_imageblit(const struct fb_image *image,
Expand Down Expand Up @@ -177,7 +179,7 @@ static inline void slow_imageblit(const struct fb_image *image, struct fb_info *

while (j--) {
l--;
color = (*s & (1 << l)) ? fgcolor : bgcolor;
color = (*s & 1 << (BIT_NR(l))) ? fgcolor : bgcolor;
color <<= LEFT_POS(bpp);
val |= SHIFT_HIGH(color, shift);

Expand Down

0 comments on commit 221fadf

Please sign in to comment.