mirror of https://github.com/AxioDL/boo.git
Window API changes
This commit is contained in:
parent
8ee04c8f1a
commit
70b2518751
|
@ -1259,10 +1259,8 @@ public:
|
||||||
return std::unique_ptr<uint8_t[]>();
|
return std::unique_ptr<uint8_t[]>();
|
||||||
}
|
}
|
||||||
|
|
||||||
void waitForRetrace(IAudioVoiceEngine* engine)
|
void waitForRetrace()
|
||||||
{
|
{
|
||||||
if (engine)
|
|
||||||
engine->pumpAndMixVoices();
|
|
||||||
m_gfxCtx->m_output->WaitForVBlank();
|
m_gfxCtx->m_output->WaitForVBlank();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -205,10 +205,8 @@ struct WindowWayland : IWindow
|
||||||
return std::unique_ptr<uint8_t[]>();
|
return std::unique_ptr<uint8_t[]>();
|
||||||
}
|
}
|
||||||
|
|
||||||
void waitForRetrace(IAudioVoiceEngine* engine)
|
void waitForRetrace()
|
||||||
{
|
{
|
||||||
if (engine)
|
|
||||||
engine->pumpAndMixVoices();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uintptr_t getPlatformHandle() const
|
uintptr_t getPlatformHandle() const
|
||||||
|
|
|
@ -1500,10 +1500,8 @@ public:
|
||||||
XSendEvent(m_xDisp, se->requestor, False, 0, &reply);
|
XSendEvent(m_xDisp, se->requestor, False, 0, &reply);
|
||||||
}
|
}
|
||||||
|
|
||||||
void waitForRetrace(IAudioVoiceEngine* engine)
|
void waitForRetrace()
|
||||||
{
|
{
|
||||||
if (engine)
|
|
||||||
engine->pumpAndMixVoices();
|
|
||||||
std::unique_lock<std::mutex> lk(m_gfxCtx->m_vsyncmt);
|
std::unique_lock<std::mutex> lk(m_gfxCtx->m_vsyncmt);
|
||||||
m_gfxCtx->m_vsynccv.wait(lk);
|
m_gfxCtx->m_vsynccv.wait(lk);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue