mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[common] Update framebuffer metadata + references
This commit is contained in:

committed by
Geoffrey McRae

parent
78d2b76313
commit
53c843d9dd
@@ -742,7 +742,7 @@ int main_frameThread(void * unused)
|
||||
if (dma->fd == -1)
|
||||
{
|
||||
const uintptr_t pos = (uintptr_t)msg.mem - (uintptr_t)g_state.shm.mem;
|
||||
const uintptr_t offset = (uintptr_t)frame->offset + FrameBufferStructSize;
|
||||
const uintptr_t offset = (uintptr_t)frame->offset + sizeof(FrameBuffer);
|
||||
|
||||
dma->dataSize = dataSize;
|
||||
dma->fd = ivshmemGetDMABuf(&g_state.shm, pos + offset, dataSize);
|
||||
|
Reference in New Issue
Block a user