[PATCH] fbcon: Console Rotation - Fix wrong shift calculation
authorAntonino A. Daplas <adaplas@gmail.com>
Tue, 22 Nov 2005 05:32:25 +0000 (21:32 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 22 Nov 2005 17:13:43 +0000 (09:13 -0800)
commitb4627dea032ab1f6e472fcf030e28f22ea971f9b
treecf4a6509616f137e46098bbbb0573194b4ef0af5
parent74a8a65c526187fe636a6a2abcb7d9ebc5c753ab
[PATCH] fbcon: Console Rotation - Fix wrong shift calculation

The shift value (amount to shift the bitmap so first pixel starts at
origin(0,0)) is incorrect.  This causes corrupted characters or a kernel crash
if fontwidth is not divisible by 8 at 270 degrees, or fontheight not divisible
by 8 at 180 degrees.

Report and part of the fix contributed by Knut Petersen.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/console/fbcon_rotate.h