mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 770414: Framebuffer stride isn't calculated properly for gonk fb back/Front Buffer. r=mwu
This commit is contained in:
parent
f4fa33262b
commit
50048b3611
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user