summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2013-08-05 20:36:43 +0000
committermichi_cc <michi_cc@openttd.org>2013-08-05 20:36:43 +0000
commite37968aadd8c14d15d49b90754a69126bdf674e7 (patch)
tree2f7e7260d333a36554fd33bf8221f475a98b1e2e /src/video
parentfdc436b531a36264d6f2ad8d4ae10170a8c281a8 (diff)
downloadopenttd-e37968aadd8c14d15d49b90754a69126bdf674e7.tar.xz
(svn r25673) -Fix: [Win32] Use the right code page for converting ANSI strings into UTF-8 for non-Unicode builds. And don't crap out on DBCS code pages either.
Diffstat (limited to 'src/video')
-rw-r--r--src/video/win32_v.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index fb50367fc..cdc3a6ec8 100644
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -50,9 +50,6 @@ bool _window_maximize;
uint _display_hz;
uint _fullscreen_bpp;
static Dimension _bck_resolution;
-#if !defined(UNICODE)
-uint _codepage;
-#endif
/** Whether the drawing is/may be done in a separate thread. */
static bool _draw_threaded;
@@ -605,17 +602,6 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
return 0;
}
-#if !defined(UNICODE)
- case WM_INPUTLANGCHANGE: {
- TCHAR locale[6];
- LCID lcid = GB(lParam, 0, 16);
-
- int len = GetLocaleInfo(lcid, LOCALE_IDEFAULTANSICODEPAGE, locale, lengthof(locale));
- if (len != 0) _codepage = _ttoi(locale);
- return 1;
- }
-#endif /* UNICODE */
-
case WM_DEADCHAR:
console = GB(lParam, 16, 8) == 41;
return 0;