Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14716
b: refs/heads/master
c: 1a9c3f7
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Linus Torvalds committed Nov 28, 2005
1 parent c15bffd commit 4bde530
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 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: 8080f231224ccd3169f39e73fd750ba98d5b98a7
refs/heads/master: 1a9c3f78a32ddc4ec50f5da2cf2db5db6f442986
2 changes: 1 addition & 1 deletion trunk/drivers/video/console/fbcon_ccw.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static inline void ccw_update_attr(u8 *dst, u8 *src, int attribute,
msk <<= (8 - mod);

if (offset > mod)
set_bit(FBCON_BIT(7), (void *)&msk1);
msk1 |= 0x01;

for (i = 0; i < vc->vc_font.width; i++) {
for (j = 0; j < width; j++) {
Expand Down
13 changes: 3 additions & 10 deletions trunk/drivers/video/console/fbcon_rotate.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,22 @@
(s == SCROLL_REDRAW || s == SCROLL_MOVE || !(i)->fix.xpanstep) ? \
(i)->var.xres : (i)->var.xres_virtual; })

/*
* The bitmap is always big endian
*/
#if defined(__LITTLE_ENDIAN)
#define FBCON_BIT(b) (7 - (b))
#else
#define FBCON_BIT(b) (b)
#endif

static inline int pattern_test_bit(u32 x, u32 y, u32 pitch, const char *pat)
{
u32 tmp = (y * pitch) + x, index = tmp / 8, bit = tmp % 8;

pat +=index;
return (test_bit(FBCON_BIT(bit), (void *)pat));
return (*pat) & (0x80 >> bit);
}

static inline void pattern_set_bit(u32 x, u32 y, u32 pitch, char *pat)
{
u32 tmp = (y * pitch) + x, index = tmp / 8, bit = tmp % 8;

pat += index;
set_bit(FBCON_BIT(bit), (void *)pat);

(*pat) |= 0x80 >> bit;
}

static inline void rotate_ud(const char *in, char *out, u32 width, u32 height)
Expand Down

0 comments on commit 4bde530

Please sign in to comment.