Alexandre Julliard : winex11.drv:
Detect an XLookupString that returns Latin-1 and avoid codepage mapping
in that case .
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Nov 8 06:42:13 CST 2006
Module: wine
Branch: master
Commit: ac227461aced6d721421e7b9229433cbf85c1162
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ac227461aced6d721421e7b9229433cbf85c1162
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Nov 7 17:28:02 2006 +0100
winex11.drv: Detect an XLookupString that returns Latin-1 and avoid codepage mapping in that case.
---
dlls/winex11.drv/keyboard.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index fdbf526..7b31203 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -2512,6 +2512,13 @@ #endif
ret = 0;
}
+ /* Hack to detect an XLookupString hard-coded to Latin1 */
+ if (ret == 1 && keysym >= 0x00a0 && keysym <= 0x00ff && (BYTE)lpChar[0] == keysym)
+ {
+ bufW[0] = (BYTE)lpChar[0];
+ goto found;
+ }
+
/* perform translation to unicode */
if(ret)
{
More information about the wine-cvs
mailing list