Codechange: use (Un)LockVideoBuffer() to manage video buffer
This commit is contained in:
committed by
Patric Stout
parent
661eb39ecc
commit
761efbb457
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user