summaryrefslogtreecommitdiffstats
path: root/drivers/video/vfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/vfb.c')
-rw-r--r--drivers/video/vfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/vfb.c b/drivers/video/vfb.c
index 8833cbeac..b494e25c6 100644
--- a/drivers/video/vfb.c
+++ b/drivers/video/vfb.c
@@ -461,7 +461,7 @@ static u_long get_line_length(int xres_virtual, int bpp)
{
u_long length;
- length = (xres_virtual+bpp-1)/bpp;
+ length = xres_virtual*bpp;
length = (length+31)&-32;
length >>= 3;
return(length);