Bug 770414: Framebuffer stride isn't calculated properly for gonk fb back/Front Buffer. r=mwu

This commit is contained in:
Oleg Romashin
2012-07-03 14:09:17 -07:00
parent 01c65f7c9d
commit 4478ff3cfc

View File

@@ -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);