diff --git a/framebuffer.cpp b/framebuffer.cpp index f70d07d..4c45c35 100644 --- a/framebuffer.cpp +++ b/framebuffer.cpp @@ -851,8 +851,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[3] field is used to store FPS by the driver. - float fps = info.reserved[3]; + //The reserved[4] field is used to store FPS by the driver. + float fps = info.reserved[4]; LOGI( "using (fd=%d)\n" "id = %s\n"