[patch 2/6] s3c2410fb: Fix linel length calculation
Stefan Schmidt
stefan at openmoko.org
Thu Oct 18 14:05:42 CEST 2007
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 <johnpcass at yahoo.com>
Signed-off-by: Stefan Schmidt <stefan at openmoko.org>
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 */
--
More information about the neo1973-hardware
mailing list