camera: event argument correction (#399)

* Event arg correction from surface to surface buffer

* Correct offset check
This commit is contained in:
capitalistspz
2024-09-06 23:34:03 +01:00
committed by GitHub
parent 34ad45777a
commit 7c93c38731

View File

@@ -73,8 +73,8 @@ struct CAMEventData
{
struct
{
//! The surface that finished decoding
CAMSurface* surface;
//! Pointer to the buffer of the decoded image
void* surfaceBuffer;
//! Handle of instance
CAMHandle handle;
//! TRUE if decode failed
@@ -92,7 +92,7 @@ struct CAMEventData
};
};
WUT_CHECK_OFFSET(CAMEventData, 0x00, eventType);
WUT_CHECK_OFFSET(CAMEventData, 0x04, decode.surface);
WUT_CHECK_OFFSET(CAMEventData, 0x04, decode.surfaceBuffer);
WUT_CHECK_OFFSET(CAMEventData, 0x08, decode.handle);
WUT_CHECK_OFFSET(CAMEventData, 0x0c, decode.failed);
WUT_CHECK_OFFSET(CAMEventData, 0x04, detach.connected);