summaryrefslogtreecommitdiff
path: root/dedicated.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-05-16 16:19:32 +0000
committerDarkvater <darkvater@openttd.org>2005-05-16 16:19:32 +0000
commit7daaf1f100319be93b534a926bb83efbe6733014 (patch)
treecd512d1e77be75c8bca61a3bb1f91db36815a124 /dedicated.c
parenteffbba74f549ecb8699bf073b3b096a03751fe04 (diff)
downloadopenttd-7daaf1f100319be93b534a926bb83efbe6733014.tar.xz
(svn r2334) - Fix (regression): moved togglefullscreen into the video-driver, now windows works, dedicated works and sdl works. Also reverted the change to the makefile.
Diffstat (limited to 'dedicated.c')
-rw-r--r--dedicated.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dedicated.c b/dedicated.c
index 2ce1a7fa4..11c83fc0c 100644
--- a/dedicated.c
+++ b/dedicated.c
@@ -167,6 +167,7 @@ static void DedicatedVideoStop(void)
static void DedicatedVideoMakeDirty(int left, int top, int width, int height) {}
static bool DedicatedVideoChangeRes(int w, int h) { return false; }
+static void DedicatedVideoFullScreen(bool fs) {}
#if defined(UNIX) || defined(__OS2__)
static bool InputWaiting(void)
@@ -322,6 +323,7 @@ const HalVideoDriver _dedicated_video_driver = {
DedicatedVideoMakeDirty,
DedicatedVideoMainLoop,
DedicatedVideoChangeRes,
+ DedicatedVideoFullScreen,
};
#else
@@ -339,6 +341,7 @@ void DedicatedFork(void) {}
static void DedicatedVideoStop(void) { free(_dedicated_video_mem); }
static void DedicatedVideoMakeDirty(int left, int top, int width, int height) {}
static bool DedicatedVideoChangeRes(int w, int h) { return false; }
+static void DedicatedVideoFullScreen(bool fs) {}
static int DedicatedVideoMainLoop(void) { return ML_QUIT; }
const HalVideoDriver _dedicated_video_driver = {
@@ -347,6 +350,7 @@ const HalVideoDriver _dedicated_video_driver = {
DedicatedVideoMakeDirty,
DedicatedVideoMainLoop,
DedicatedVideoChangeRes,
+ DedicatedVideoFullScreen,
};
#endif /* ENABLE_NETWORK */