Codechange: use (Un)LockVideoBuffer() to manage video buffer

This commit is contained in:
Patric Stout
2021-02-20 10:49:27 +01:00
committed by Patric Stout
parent 661eb39ecc
commit 761efbb457
7 changed files with 80 additions and 24 deletions

View File

@@ -39,8 +39,12 @@ public:
protected:
void InputLoop() override;
bool LockVideoBuffer() override;
void UnlockVideoBuffer() override;
private:
std::unique_lock<std::recursive_mutex> draw_lock;
int PollEvent();
bool CreateMainSurface(uint w, uint h);
void SetupKeyboard();