gralloc : apply kernel 3.4 fb screeninfo type
Since fb screeninfo type is changed in kernel 3.4,
fb ioctl is not work correctly without this patch.
Change-Id: I5d673b78bd9a1680daf77256a7d31bc78d75cda7
diff --git a/libgralloc/framebuffer.cpp b/libgralloc/framebuffer.cpp
index 4935785..931024b 100644
--- a/libgralloc/framebuffer.cpp
+++ b/libgralloc/framebuffer.cpp
@@ -816,8 +816,8 @@
float xdpi = (info.xres * 25.4f) / info.width;
float ydpi = (info.yres * 25.4f) / info.height;
- //The reserved[4] field is used to store FPS by the driver.
- float fps = info.reserved[4];
+ //The reserved[3] field is used to store FPS by the driver.
+ float fps = info.reserved[3];
ALOGI("using (fd=%d)\n"
"id = %s\n"