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
This commit is contained in:
parent
351fb48f7e
commit
b4572b058c
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue