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

@@ -45,9 +45,15 @@ protected:
Dimension GetScreenSize() const override;
float GetDPIScale() override;
void InputLoop() override;
bool LockVideoBuffer() override;
void UnlockVideoBuffer() override;
private:
std::unique_lock<std::recursive_mutex> draw_lock;
void CheckPaletteAnim();
static void PaintThreadThunk(VideoDriver_Win32 *drv);
};
/** The factory for Windows' video driver. */