diff options
author | Darkvater <Darkvater@openttd.org> | 2005-05-16 16:19:32 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-05-16 16:19:32 +0000 |
commit | 6b794ede3b9db3daa58e4596827a20f6fce74191 (patch) | |
tree | cd512d1e77be75c8bca61a3bb1f91db36815a124 /dedicated.c | |
parent | 3d84bdc0ae9c277e04db36b14645c43764916da4 (diff) | |
download | openttd-6b794ede3b9db3daa58e4596827a20f6fce74191.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.c | 4 |
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 */ |