Remove vsync thread from X11 backend

This commit is contained in:
Jack Andersen
2019-02-11 21:18:35 -10:00
parent 3e1da36f39
commit 45db327fb3
6 changed files with 137 additions and 132 deletions

View File

@@ -914,6 +914,11 @@ public:
}
}
double getWindowRefreshRate() const {
/* TODO: Actually get refresh rate */
return 60.0;
}
void setWindowFrameDefault() {
MONITORINFO monInfo = {};
monInfo.cbSize = sizeof(MONITORINFO);
@@ -1063,7 +1068,7 @@ public:
return std::unique_ptr<uint8_t[]>();
}
void waitForRetrace() { m_gfxCtx->m_output->WaitForVBlank(); }
int waitForRetrace() { m_gfxCtx->m_output->WaitForVBlank(); return 1; }
uintptr_t getPlatformHandle() const { return uintptr_t(m_hwnd); }