diff options
author | Patric Stout <truebrain@openttd.org> | 2018-04-29 14:21:31 +0200 |
---|---|---|
committer | Patric Stout <truebrain@openttd.org> | 2018-04-29 15:32:16 +0200 |
commit | aef69443e766089b0d9ceaa2255959ee327396f0 (patch) | |
tree | ba28c681763b53d9ed543bd84c1b069da6744a1d /src/video/dedicated_v.cpp | |
parent | 85adde74858161240860ed9e4bf67f9be838de45 (diff) | |
download | openttd-aef69443e766089b0d9ceaa2255959ee327396f0.tar.xz |
Remove: WinCE support
Diffstat (limited to 'src/video/dedicated_v.cpp')
-rw-r--r-- | src/video/dedicated_v.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp index 52e0b6faa..aaadd9461 100644 --- a/src/video/dedicated_v.cpp +++ b/src/video/dedicated_v.cpp @@ -75,9 +75,7 @@ static void DedicatedSignalHandler(int sig) #if defined(WIN32) # include <windows.h> /* GetTickCount */ -# if !defined(WINCE) -# include <conio.h> -# endif +# include <conio.h> # include <time.h> # include <tchar.h> # include "../os/windows/win32.h" @@ -88,10 +86,6 @@ static char _win_console_thread_buffer[200]; /* Windows Console thread. Just loop and signal when input has been received */ static void WINAPI CheckForConsoleInput() { -#if defined(WINCE) - /* WinCE doesn't support console stuff */ - return; -#else SetWin32ThreadName(-1, "ottd:win-console"); DWORD nb; @@ -106,7 +100,6 @@ static void WINAPI CheckForConsoleInput() SetEvent(_hInputReady); WaitForSingleObject(_hWaitForInputHandling, INFINITE); } -#endif } static void CreateWindowsConsoleThread() @@ -157,9 +150,7 @@ const char *VideoDriver_Dedicated::Start(const char * const *parm) ScreenSizeChanged(); BlitterFactory::GetCurrentBlitter()->PostResize(); -#if defined(WINCE) - /* WinCE doesn't support console stuff */ -#elif defined(WIN32) +#if defined(WIN32) /* For win32 we need to allocate a console (debug mode does the same) */ CreateConsole(); CreateWindowsConsoleThread(); |