Fix graphics corruption on some devices. BML restore needs to unlock first.

Change-Id: Ib6ede1dee0a0a4494319cfdb1613be2e89260874
diff --git a/minui/graphics.c b/minui/graphics.c
index c562053..bf90484 100644
--- a/minui/graphics.c
+++ b/minui/graphics.c
@@ -90,7 +90,7 @@
     fb->version = sizeof(*fb);
     fb->width = vi.xres;
     fb->height = vi.yres;
-    fb->stride = vi.xres;
+    fb->stride = fi.line_length/2; /* stride is the number of pixels until the data of next row, >= xres */;
     fb->data = bits;
     fb->format = GGL_PIXEL_FORMAT_RGB_565;
 
@@ -99,8 +99,8 @@
     fb->version = sizeof(*fb);
     fb->width = vi.xres;
     fb->height = vi.yres;
-    fb->stride = vi.xres;
-    fb->data = (void*) (((unsigned) bits) + vi.yres * vi.xres * 2);
+    fb->stride = fi.line_length/2;
+    fb->data = (void*) (((unsigned) bits) + vi.yres * fi.line_length);
     fb->format = GGL_PIXEL_FORMAT_RGB_565;
 
     return fd;