summaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-05-16 12:15:34 +0000
committerDarkvater <darkvater@openttd.org>2005-05-16 12:15:34 +0000
commit3bd76dad5bd738e07d4cd72d6816f9177448b3bc (patch)
treebe84391b9ca0b9d85bbe93c33fc8ad0e555a850e /sdl.c
parentb18e4d1a8d5965a658651135f80c911ef2dc2f80 (diff)
downloadopenttd-3bd76dad5bd738e07d4cd72d6816f9177448b3bc.tar.xz
(svn r2330) - Fix: link error when compiling as dedicated. Add sdl.c to always compile in makefile as it is always protected by WITH_SDL and add a stub for ToggleFullScreen()
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sdl.c b/sdl.c
index f6f5fe926..c81fb66d6 100644
--- a/sdl.c
+++ b/sdl.c
@@ -706,4 +706,9 @@ static void DbgRedraw()
}
#endif
-#endif // WITH_SDL
+#else
+
+/* Stub for dedicated server */
+void ToggleFullScreen(bool full_screen) {}
+
+#endif /* WITH_SDL */