summaryrefslogtreecommitdiff
path: root/src/video/sdl2_v.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-02-21 19:16:18 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-22 22:16:07 +0100
commita77b202767d98ae0904e6f42efb10a38c4c40c4e (patch)
treec63945bcbde8a78df92aa58f77165fcf0ae50e1e /src/video/sdl2_v.h
parente75858ce5e96df30ccb22253ec592d3829e2bccc (diff)
downloadopenttd-a77b202767d98ae0904e6f42efb10a38c4c40c4e.tar.xz
Codechange: [SDL] Move dirty_rect to class scope.
Diffstat (limited to 'src/video/sdl2_v.h')
-rw-r--r--src/video/sdl2_v.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video/sdl2_v.h b/src/video/sdl2_v.h
index 19c208cfe..cfd82d151 100644
--- a/src/video/sdl2_v.h
+++ b/src/video/sdl2_v.h
@@ -53,6 +53,7 @@ protected:
std::condition_variable_any *draw_signal = nullptr; ///< Signal to draw the next frame.
volatile bool draw_continue; ///< Should we keep continue drawing?
bool buffer_locked; ///< Video buffer was locked by the main thread.
+ Rect dirty_rect; ///< Rectangle encompassing the dirty area of the video buffer.
Dimension GetScreenSize() const override;
void InputLoop() override;