mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 14:01:45 +00:00
- Fixed: DirectInput8Create() used the wrong calling convention.
SVN r1426 (trunk)
This commit is contained in:
parent
666e40c8bb
commit
491abe3a2c
2 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
February 15, 2009 (Changes by Graf Zahl)
|
February 15, 2009 (Changes by Graf Zahl)
|
||||||
- Fixed: The CHARFORMAT structure that is used to set the color in a Windows
|
- Fixed: The CHARFORMAT structure that is used to set the color in a Windows
|
||||||
Rich Edit control was not fully initialized resulting in incorrect colors
|
Rich Edit control was not fully initialized resulting in incorrect colors
|
||||||
being set.
|
being set.
|
||||||
|
@ -23,6 +23,7 @@ February 14, 2009 (Changes by Graf Zahl)
|
||||||
block in the file.
|
block in the file.
|
||||||
|
|
||||||
February 10, 2009
|
February 10, 2009
|
||||||
|
- Fixed: DirectInput8Create() used the wrong calling convention.
|
||||||
- Moved the V_InitFontColors() call earlier in the startup sequence so that
|
- Moved the V_InitFontColors() call earlier in the startup sequence so that
|
||||||
colored error messages appear colored in the startup window. Also lightened
|
colored error messages appear colored in the startup window. Also lightened
|
||||||
up the "Flat" red to contrast better on the startup background.
|
up the "Flat" red to contrast better on the startup background.
|
||||||
|
|
|
@ -1455,7 +1455,7 @@ bool I_InitInput (void *hwnd)
|
||||||
DInputDLL = LoadLibrary("dinput8.dll");
|
DInputDLL = LoadLibrary("dinput8.dll");
|
||||||
if (DInputDLL != NULL)
|
if (DInputDLL != NULL)
|
||||||
{
|
{
|
||||||
typedef HRESULT (*blah)(HINSTANCE, DWORD, REFIID, LPVOID *, LPUNKNOWN);
|
typedef HRESULT (WINAPI *blah)(HINSTANCE, DWORD, REFIID, LPVOID *, LPUNKNOWN);
|
||||||
blah di8c = (blah)GetProcAddress(DInputDLL, "DirectInput8Create");
|
blah di8c = (blah)GetProcAddress(DInputDLL, "DirectInput8Create");
|
||||||
if (di8c != NULL)
|
if (di8c != NULL)
|
||||||
{
|
{
|
||||||
|
@ -1484,7 +1484,7 @@ bool I_InitInput (void *hwnd)
|
||||||
I_FatalError ("Could not load dinput.dll: %08lx", GetLastError());
|
I_FatalError ("Could not load dinput.dll: %08lx", GetLastError());
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef HRESULT (*blah)(HINSTANCE, DWORD, LPDIRECTINPUT*, LPUNKNOWN);
|
typedef HRESULT (WINAPI *blah)(HINSTANCE, DWORD, LPDIRECTINPUT*, LPUNKNOWN);
|
||||||
blah dic = (blah)GetProcAddress (DInputDLL, "DirectInputCreateA");
|
blah dic = (blah)GetProcAddress (DInputDLL, "DirectInputCreateA");
|
||||||
|
|
||||||
if (dic == NULL)
|
if (dic == NULL)
|
||||||
|
|
Loading…
Reference in a new issue