summaryrefslogtreecommitdiff
path: root/src/video/sdl2_v.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2021-01-14 23:29:29 +0100
committerGitHub <noreply@github.com>2021-01-14 23:29:29 +0100
commit0e62a398c7f03ae0bb75980d97dab3f72ecfb26c (patch)
tree5091e0726a490fa7c609efd738acaf255b5646b0 /src/video/sdl2_v.h
parentfa60c1f8b94dd5584a5d5331de277ca23a203422 (diff)
downloadopenttd-0e62a398c7f03ae0bb75980d97dab3f72ecfb26c.tar.xz
Add: [SDL2] video driver parameter to put OpenTTD on a particular display on start. By default use the display where the mouse cursor is. (#8572)
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 f0f27df79..de10543b5 100644
--- a/src/video/sdl2_v.h
+++ b/src/video/sdl2_v.h
@@ -64,6 +64,7 @@ private:
uint32 last_cur_ticks;
uint32 next_tick;
+ int startup_display;
std::thread draw_thread;
std::unique_lock<std::recursive_mutex> draw_lock;
};