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 9e7357ba85
commit b764eec0df

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