Update video_out.cpp (#2416)

This commit is contained in:
Stephen Miller 2025-02-13 08:29:26 -06:00 committed by GitHub
parent b2fb004414
commit 455b23c6f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -199,10 +199,15 @@ int PS4_SYSV_ABI sceVideoOutGetEventData(const Kernel::SceKernelEvent* ev, int64
return ORBIS_VIDEO_OUT_ERROR_INVALID_ADDRESS; return ORBIS_VIDEO_OUT_ERROR_INVALID_ADDRESS;
} }
if (ev->filter != Kernel::SceKernelEvent::Filter::VideoOut) { if (ev->filter != Kernel::SceKernelEvent::Filter::VideoOut) {
return ORBIS_VIDEO_OUT_ERROR_INVALID_EVENT_QUEUE; return ORBIS_VIDEO_OUT_ERROR_INVALID_EVENT;
} }
*data = ev->data; auto event_data = ev->data >> 0x10;
if (ev->ident != static_cast<s32>(OrbisVideoOutInternalEventId::Flip) || ev->data == 0) {
*data = event_data;
} else {
*data = event_data | 0xFFFF000000000000;
}
return ORBIS_OK; return ORBIS_OK;
} }