mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
Clang
This commit is contained in:
parent
eed81bebcb
commit
7704433c7d
@ -185,9 +185,11 @@ void VideoOutDriver::Flip(const Request& req) {
|
|||||||
// Trigger flip events for the port.
|
// Trigger flip events for the port.
|
||||||
for (auto& event : port->flip_events) {
|
for (auto& event : port->flip_events) {
|
||||||
if (event != nullptr) {
|
if (event != nullptr) {
|
||||||
event->TriggerEvent(static_cast<u64>(OrbisVideoOutInternalEventId::Flip),
|
event->TriggerEvent(
|
||||||
Kernel::SceKernelEvent::Filter::VideoOut,
|
static_cast<u64>(OrbisVideoOutInternalEventId::Flip),
|
||||||
reinterpret_cast<void*>(static_cast<u64>(OrbisVideoOutInternalEventId::Flip) | (req.flip_arg << 16)));
|
Kernel::SceKernelEvent::Filter::VideoOut,
|
||||||
|
reinterpret_cast<void*>(static_cast<u64>(OrbisVideoOutInternalEventId::Flip) |
|
||||||
|
(req.flip_arg << 16)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,7 +159,8 @@ int PS4_SYSV_ABI sceVideoOutGetEventId(const Kernel::SceKernelEvent* ev) {
|
|||||||
return ORBIS_VIDEO_OUT_ERROR_INVALID_EVENT;
|
return ORBIS_VIDEO_OUT_ERROR_INVALID_EVENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
OrbisVideoOutInternalEventId internal_event_id = static_cast<OrbisVideoOutInternalEventId>(ev->ident);
|
OrbisVideoOutInternalEventId internal_event_id =
|
||||||
|
static_cast<OrbisVideoOutInternalEventId>(ev->ident);
|
||||||
switch (internal_event_id) {
|
switch (internal_event_id) {
|
||||||
case OrbisVideoOutInternalEventId::Flip:
|
case OrbisVideoOutInternalEventId::Flip:
|
||||||
return static_cast<s32>(OrbisVideoOutEventId::Flip);
|
return static_cast<s32>(OrbisVideoOutEventId::Flip);
|
||||||
|
Loading…
Reference in New Issue
Block a user