Jeremy White : wintab32: Fix the W-> A translation for CSR_NAME and CSR_BTNNAMES.

Alexandre Julliard julliard at winehq.org
Wed Dec 26 10:05:05 CST 2007


Module: wine
Branch: master
Commit: 51ea5cb4e8e314ff2712ac13fbac0e820de3ca51
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=51ea5cb4e8e314ff2712ac13fbac0e820de3ca51

Author: Jeremy White <jwhite at codeweavers.com>
Date:   Mon Dec 24 13:35:32 2007 -0600

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 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/wintab32/context.c b/dlls/wintab32/context.c
index cb85e08..21163c1 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-cvs mailing list