s3c2410_fb: Fix line length calculation
Subsystems (2)
PATCH 1/1 s3c2410_fb: Fix line length calculation
Fix line length calculation. var->width is the size of the display in mm. We like to use the pixel size.
Without this fix, dynamic (fbset) based resolution changes with s3c2410_fb don't work at all.
Spotted by john cass <[email protected]>
Signed-off-by Stefan Schmidt <[email protected]>
Signed-off-by Harald Welte <[email protected]>
Acked-by Ben Dooks <[email protected]>
Acked-by Arnaud Patard <[email protected]>
drivers/video/s3c2410fb.c +1 -1
@@ -488,7 +488,7 @@break ; } - info->fix.line_length = (var->width * var->bits_per_pixel) /8 ; + info->fix.line_length = (var->xres_virtual * var->bits_per_pixel) /8 ;/* activate this new configuration */
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace