[common] fix FrameBuffer to use atomics correctly

Might Fix #248
This commit is contained in:
Geoffrey McRae
2020-04-12 13:14:53 +10:00
parent b5f4c639fd
commit 1222fd40b7
4 changed files with 39 additions and 21 deletions

View File

@@ -187,7 +187,7 @@ static int frameThread(void * opaque)
fi->height = frame.height;
fi->stride = frame.stride;
fi->pitch = frame.pitch;
fi->offset = pageSize - sizeof(FrameBuffer);
fi->offset = pageSize - FrameBufferStructSize;
frameValid = true;
// put the framebuffer on the border of the next page