From 7b1ceb1f267b81ea0a7a3eb5593a02fbf55f2c9d Mon Sep 17 00:00:00 2001 From: "Antonino A. Daplas" Date: Mon, 21 Nov 2005 21:32:25 -0800 Subject: [PATCH] --- yaml --- r: 14617 b: refs/heads/master c: b4627dea032ab1f6e472fcf030e28f22ea971f9b h: refs/heads/master i: 14615: 54a47b5baef0cf7a12c0634c1bbdaa9fb1917b83 v: v3 --- [refs] | 2 +- trunk/drivers/video/console/fbcon_rotate.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 6f1bcd0c9b4d..44552d9cb167 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 74a8a65c526187fe636a6a2abcb7d9ebc5c753ab +refs/heads/master: b4627dea032ab1f6e472fcf030e28f22ea971f9b diff --git a/trunk/drivers/video/console/fbcon_rotate.h b/trunk/drivers/video/console/fbcon_rotate.h index 90c672096c2e..e504fbf5c604 100644 --- a/trunk/drivers/video/console/fbcon_rotate.h +++ b/trunk/drivers/video/console/fbcon_rotate.h @@ -49,7 +49,7 @@ static inline void pattern_set_bit(u32 x, u32 y, u32 pitch, char *pat) static inline void rotate_ud(const char *in, char *out, u32 width, u32 height) { int i, j; - int shift = width % 8; + int shift = (8 - (width % 8)) & 7; width = (width + 7) & ~7; @@ -85,7 +85,7 @@ static inline void rotate_cw(const char *in, char *out, u32 width, u32 height) static inline void rotate_ccw(const char *in, char *out, u32 width, u32 height) { int i, j, h = height, w = width; - int shift = width % 8; + int shift = (8 - (width % 8)) & 7; width = (width + 7) & ~7; height = (height + 7) & ~7;