From c8fbc14425c59f8cb4e658c00d610e93ab4e8dd4 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sat, 23 Jun 2012 22:54:52 +0200 Subject: [PATCH] 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 --- src/uterm_video_fbdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uterm_video_fbdev.c b/src/uterm_video_fbdev.c index 1218d0c..52925dd 100644 --- a/src/uterm_video_fbdev.c +++ b/src/uterm_video_fbdev.c @@ -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;