From 51ea5cb4e8e314ff2712ac13fbac0e820de3ca51 Mon Sep 17 00:00:00 2001 From: Jeremy White Date: Mon, 24 Dec 2007 13:35:32 -0600 Subject: [PATCH] wintab32: Fix the W->A translation for CSR_NAME and CSR_BTNNAMES. Has the lovely side effect of making Photoshop pressure + tilt work. --- dlls/wintab32/context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/wintab32/context.c b/dlls/wintab32/context.c index cb85e08a33b..21163c1d80e 100644 --- a/dlls/wintab32/context.c +++ b/dlls/wintab32/context.c @@ -73,7 +73,8 @@ static BOOL is_string_field(UINT wCategory, UINT nIndex) return TRUE; if (is_logcontext_category(wCategory) && nIndex == CTX_NAME) return TRUE; - if (wCategory >= WTI_CURSORS && wCategory <= WTI_CURSORS + 9) + if ((wCategory >= WTI_CURSORS && wCategory <= WTI_CURSORS + 9) && + (nIndex == CSR_NAME || nIndex == CSR_BTNNAMES)) return TRUE; if (wCategory == WTI_DEVICES && (nIndex == DVC_NAME || nIndex == DVC_PNPID)) return TRUE;