mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
udlfb: set line_length in dlfb_ops_set_par
Set the variable "line_length" in the function dlfb_ops_set_par. Without this, we get garbage if we select different videomode with fbset. Signed-off-by: Mikulas Patocka <[email protected]> Cc: [email protected] Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
This commit is contained in:
parent
080fb5240b
commit
0ac319b7af
1 changed files with 1 additions and 0 deletions
|
|
@ -1057,6 +1057,7 @@ static int dlfb_ops_set_par(struct fb_info *info)
|
|||
return result;
|
||||
|
||||
dlfb->current_mode = fvs;
|
||||
info->fix.line_length = info->var.xres * (info->var.bits_per_pixel / 8);
|
||||
|
||||
if (dlfb->fb_count == 0) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue