From b764eec0df8e60dca2913224e8d164e5e57e65bb Mon Sep 17 00:00:00 2001 From: Oleg Romashin Date: Tue, 3 Jul 2012 14:09:17 -0700 Subject: [PATCH] Bug 770414: Framebuffer stride isn't calculated properly for gonk fb back/Front Buffer. r=mwu --- widget/gonk/Framebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/gonk/Framebuffer.cpp b/widget/gonk/Framebuffer.cpp index ba90134ec47..0d29964caa9 100644 --- a/widget/gonk/Framebuffer.cpp +++ b/widget/gonk/Framebuffer.cpp @@ -102,7 +102,7 @@ Open() if (!sScreenSize) { sScreenSize = new gfxIntSize(sVi.xres, sVi.yres); } - long stride = sScreenSize->width * bytesPerPixel; + long stride = fi.line_length; size_t numFrameBytes = stride * sScreenSize->height; sBuffers = new BufferVector(2);