[wintab32 5/5] Fix the W->A translation for CSR_NAME and CSR_BTNNAMES
Jeremy White
jwhite at codeweavers.com
Mon Dec 24 13:35:32 CST 2007
Has the lovely side effect of making Photoshop pressure + tilt work.
---
dlls/wintab32/context.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/wintab32/context.c b/dlls/wintab32/context.c
index a43665c..bb236f2 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;
More information about the wine-patches
mailing list