[3/7] winex11.drv: Replace no-longer-existent VK_A, VK_Z, VK_0, and
VK_9 constants.
Ken Thomases
ken at codeweavers.com
Fri Nov 17 14:46:31 CST 2006
Those constants were eliminated because the Windows headers don't declare
them. I used the XK_* equivalents, which happen to be identical in this
case. This isn't hacky -- the code in question was already taking
advantage of this very fact when converting from keysyms to vkeys.
---
dlls/winex11.drv/keyboard.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
-------------- next part --------------
diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index 1fdb9e9..a542fd5 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -1672,8 +1672,8 @@ #if 0 /* this breaks VK_OEM_x VKeys in s
for (i = 0; (i < keysyms_per_keycode) && (!vkey); i++)
{
keysym = XLookupKeysym(&e2, i);
- if ((keysym >= VK_0 && keysym <= VK_9)
- || (keysym >= VK_A && keysym <= VK_Z)) {
+ if ((keysym >= XK_0 && keysym <= XK_9)
+ || (keysym >= XK_A && keysym <= XK_Z)) {
vkey = keysym;
}
}
More information about the wine-patches
mailing list