uterm: video_fbdev: save stride on open

Copy stride into the fbdev structure so we can use it throughout the code.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann committed 2012-06-23 22:54:52 +02:00
1 parent 8c64daa5df
commit c8fbc14425
1 file changed
+1
+1
View File
@@ -208,6 +208,7 @@ static int display_activate_force(struct uterm_display *disp,
disp->fbdev.yres = vinfo->yres;
disp->fbdev.len = len;
disp->fbdev.bpp = vinfo->bits_per_pixel / 8;
disp->fbdev.stride = finfo->line_length;
disp->fbdev.bufid = 0;
disp->flags |= DISPLAY_ONLINE;