summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkmain-win32.c
diff options
context:
space:
mode:
authorLuca Bacci <luca.bacci982@gmail.com>2022-01-14 15:09:48 +0100
committerLuca Bacci <luca.bacci982@gmail.com>2022-01-17 14:14:55 +0100
commit4916ebd05e10ca5bbb28d351267bb954809b6207 (patch)
tree2b6df96a52d3b860791e2b4720d54b11ad814783 /gdk/win32/gdkmain-win32.c
parent8bbf48eb64135555dcd546795a6e38dfeee18aab (diff)
downloadgtk+-4916ebd05e10ca5bbb28d351267bb954809b6207.tar.gz
GdkWin32: Remove _gdk_input_codepage variable
It's unused
Diffstat (limited to 'gdk/win32/gdkmain-win32.c')
-rw-r--r--gdk/win32/gdkmain-win32.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/gdk/win32/gdkmain-win32.c b/gdk/win32/gdkmain-win32.c
index 1a52f706e5..d140d8e644 100644
--- a/gdk/win32/gdkmain-win32.c
+++ b/gdk/win32/gdkmain-win32.c
@@ -52,7 +52,9 @@ static gboolean gdk_synchronize = FALSE;
void
_gdk_win32_surfaceing_init (void)
{
- char buf[10];
+ GdkWin32Keymap *win32_keymap;
+
+ win32_keymap = GDK_WIN32_KEYMAP (_gdk_win32_display_get_keymap (_gdk_display));
if (gdk_synchronize)
GdiSetBatchLimit (1);
@@ -60,13 +62,9 @@ _gdk_win32_surfaceing_init (void)
_gdk_app_hmodule = GetModuleHandle (NULL);
_gdk_display_hdc = CreateDC ("DISPLAY", NULL, NULL, NULL);
_gdk_input_locale = GetKeyboardLayout (0);
- _gdk_win32_keymap_set_active_layout (GDK_WIN32_KEYMAP (_gdk_win32_display_get_keymap (_gdk_display)), _gdk_input_locale);
- GetLocaleInfo (MAKELCID (LOWORD (_gdk_input_locale), SORT_DEFAULT),
- LOCALE_IDEFAULTANSICODEPAGE,
- buf, sizeof (buf));
- _gdk_input_codepage = atoi (buf);
- GDK_NOTE (EVENTS, g_print ("input_locale:%p, codepage:%d\n",
- _gdk_input_locale, _gdk_input_codepage));
+ _gdk_win32_keymap_set_active_layout (win32_keymap, _gdk_input_locale);
+
+ GDK_NOTE (EVENTS, g_print ("input_locale: %p\n", _gdk_input_locale));
_gdk_win32_clipdrop_init ();
}