mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-18 23:52:02 +00:00
- ZDoom now disables the input method editor, since it has no east-Asian
support, and having it open a composition window when you're only expecting a single keypress is not so good. SVN r1705 (trunk)
This commit is contained in:
parent
201c5c5125
commit
3786ced96e
2 changed files with 16 additions and 1 deletions
|
@ -1,4 +1,7 @@
|
||||||
July 3, 2009
|
July 3, 2009
|
||||||
|
- ZDoom now disables the input method editor, since it has no east-Asian
|
||||||
|
support, and having it open a composition window when you're only expecting
|
||||||
|
a single keypress is not so good.
|
||||||
- Fixed: Setting intermissioncounter to false in gameinfo drew all the stats
|
- Fixed: Setting intermissioncounter to false in gameinfo drew all the stats
|
||||||
at once, instead of revealing them one line at a time.
|
at once, instead of revealing them one line at a time.
|
||||||
- Fixed: The border definition in MAPINFO's gameinfo block used extra braces.
|
- Fixed: The border definition in MAPINFO's gameinfo block used extra braces.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
** System-specific startup code. Eventually calls D_DoomMain.
|
** System-specific startup code. Eventually calls D_DoomMain.
|
||||||
**
|
**
|
||||||
**---------------------------------------------------------------------------
|
**---------------------------------------------------------------------------
|
||||||
** Copyright 1998-2007 Randy Heit
|
** Copyright 1998-2009 Randy Heit
|
||||||
** All rights reserved.
|
** All rights reserved.
|
||||||
**
|
**
|
||||||
** Redistribution and use in source and binary forms, with or without
|
** Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -917,6 +917,18 @@ void DoMain (HINSTANCE hInstance)
|
||||||
width = 512;
|
width = 512;
|
||||||
height = 384;
|
height = 384;
|
||||||
|
|
||||||
|
// Disable the input method editor (not present in Win95/NT4)
|
||||||
|
HMODULE imm32 = LoadLibrary("imm32.dll");
|
||||||
|
if (imm32 != NULL)
|
||||||
|
{
|
||||||
|
BOOL (WINAPI *DisableIME)(DWORD) = (BOOL(WINAPI *)(DWORD))GetProcAddress(imm32, "ImmDisableIME");
|
||||||
|
if (DisableIME != NULL)
|
||||||
|
{
|
||||||
|
DisableIME(0);
|
||||||
|
}
|
||||||
|
FreeLibrary(imm32);
|
||||||
|
}
|
||||||
|
|
||||||
// Many Windows structures that specify their size do so with the first
|
// Many Windows structures that specify their size do so with the first
|
||||||
// element. DEVMODE is not one of those structures.
|
// element. DEVMODE is not one of those structures.
|
||||||
memset (&displaysettings, 0, sizeof(displaysettings));
|
memset (&displaysettings, 0, sizeof(displaysettings));
|
||||||
|
|
Loading…
Reference in a new issue