Fix line length calculation. var->width is the size of the display in mm. We
like to use the pixel size.
Spotted by john cass <[EMAIL PROTECTED]>
Signed-off-by: Stefan Schmidt <[EMAIL PROTECTED]>
Index: linux-2.6.22.5/drivers/video/s3c2410fb.c
===================================================================
--- linux-2.6.22.5.orig/drivers/video/s3c2410fb.c 2007-10-15
19:23:03.000000000 +0800
+++ linux-2.6.22.5/drivers/video/s3c2410fb.c 2007-10-15 19:24:55.000000000
+0800
@@ -470,7 +470,7 @@
break;
}
- fbi->fb->fix.line_length = (var->width*var->bits_per_pixel)/8;
+ fbi->fb->fix.line_length =
(var->xres_virtual*var->bits_per_pixel)/8;
/* activate this new configuration */
--