diff options
author | choongryeol.lee <choongryeol.lee@lge.com> | 2012-06-26 23:41:00 -0700 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2012-06-28 22:20:48 -0700 |
commit | 26145b899981b4776c627f3c5713f7f3bc910dd9 (patch) | |
tree | 5d417706f7a91b6e59b68de7aa09b645fce5a059 /libgralloc/framebuffer.cpp | |
parent | 3b4cee666da166eb118f4e0e5cd6ad2c6593068a (diff) | |
download | android_hardware_qcom_display-26145b899981b4776c627f3c5713f7f3bc910dd9.tar.gz android_hardware_qcom_display-26145b899981b4776c627f3c5713f7f3bc910dd9.tar.bz2 android_hardware_qcom_display-26145b899981b4776c627f3c5713f7f3bc910dd9.zip |
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
Diffstat (limited to 'libgralloc/framebuffer.cpp')
-rw-r--r-- | libgralloc/framebuffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgralloc/framebuffer.cpp b/libgralloc/framebuffer.cpp index 4935785b6..931024bc9 100644 --- a/libgralloc/framebuffer.cpp +++ b/libgralloc/framebuffer.cpp @@ -816,8 +816,8 @@ int mapFrameBufferLocked(struct private_module_t* module) 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" |