http://bugs.winehq.org/show_bug.cgi?id=10413
Summary: Pen and eraser reversed when using Photoshop 7 with Wacom tablet Product: Wine Version: CVS/GIT Platform: Other OS/Version: other Status: NEW Keywords: download Severity: enhancement Priority: P2 Component: wine-misc AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
In http://appdb.winehq.org/objectManager.php?sClass=version&iId=1336, Darrell Troth wrote: "My wacom shows the eraser for the pen tip and vice versa for the other end, yet nothing shows in the window. In other words the pen tip is the eraser and the eraser is the pen tip when looking at the history palette in photoshop. ... I don't have this problem with the Linux version of Gimp."
I can confirm this reversal; it's happened consistently every time I've tested Photoshop 7 on a system with a tablet, I think. I think it affects all other versions of Photoshop, too. And sometimes it takes a little fiddling to figure out how to start drawing, just as Darrell noted.
http://bugs.winehq.org/show_bug.cgi?id=10413
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal
http://bugs.winehq.org/show_bug.cgi?id=10413
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P1
--- Comment #1 from Dan Kegel dank@kegel.com 2007-11-25 13:43:37 --- Raising priority, since this will greatly annoy Photoshop CS2 users who use a wacom tablet.
http://bugs.winehq.org/show_bug.cgi?id=10413
Jeremy White jwhite@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jwhite@codeweavers.com Status|NEW |ASSIGNED
--- Comment #2 from Jeremy White jwhite@codeweavers.com 2007-12-19 17:14:44 --- This is arguably a required change in the users configuration.
That is, Photoshop 7 requires that devices be in a particular order, and the user can reorder those devices by changing the X configuration:
http://www.codeweavers.com/support/docs/cxoffice/faq#id2509050
However, a counter argument is that Wine should reorder the devices to present them in the order they normally appear on Windows.
A patch to do this is attached, and seems to work.
I would appreciate feedback on whether or not this patch works for others, or looks correct.
A related cleanup patch is attached, for completeness (the first patch exposes a bug that needs to be fixed).
One final niggle on all of this: I have a nagging feeling that a simpler fix is to get Photoshop to respect the TPS_INVERT flag to find the eraser, instead of relying on the cursor index. However, nothing I can do seems to cause that change in behavior.
http://bugs.winehq.org/show_bug.cgi?id=10413
--- Comment #3 from Jeremy White jwhite@codeweavers.com 2007-12-19 17:15:41 --- Created an attachment (id=9703) --> (http://bugs.winehq.org/attachment.cgi?id=9703) Reorder the indexes of cursors to match what Photoshop expects
http://bugs.winehq.org/show_bug.cgi?id=10413
--- Comment #4 from Jeremy White jwhite@codeweavers.com 2007-12-19 17:16:06 --- Created an attachment (id=9704) --> (http://bugs.winehq.org/attachment.cgi?id=9704) Do not offset the physical id of a cursor by its index, that's nonsensical
http://bugs.winehq.org/show_bug.cgi?id=10413
--- Comment #5 from Dan Kegel dank@kegel.com 2007-12-20 08:03:53 --- I was about to test this, but the problem seems to have vanished on my system.
(Actually, I did test it, found the problem gone, then reverted your two patches just to be sure-- and found the problem still gone.)
So, utter mystery. Can you confirm that reverting your patches makes the problem reappear on your system?
http://bugs.winehq.org/show_bug.cgi?id=10413
--- Comment #6 from Jeremy White jwhite@codeweavers.com 2007-12-20 08:06:26 ---
(Actually, I did test it, found the problem gone, then reverted your two patches just to be sure-- and found the problem still gone.)
It's more likely that what happened is that your device list is now ordered in a way that Photoshop approves of.
That would make my patch a nop.
Can you attach a +wintab32 and I'll look to be sure?
http://bugs.winehq.org/show_bug.cgi?id=10413
--- Comment #7 from Dan Kegel dank@kegel.com 2007-12-20 10:49:02 --- Created an attachment (id=9722) --> (http://bugs.winehq.org/attachment.cgi?id=9722) +wintab32 log of "photoshop demo.psd" and drawing a bit with the tablet
http://bugs.winehq.org/show_bug.cgi?id=10413
--- Comment #8 from Jeremy White jwhite@codeweavers.com 2007-12-20 11:51:42 --- Are you sure that's the right log? This log shows you failing to open your X devices like stylus and eraser, and there is no evidence of any motion events that I'd expect to see when drawing with a tablet.
In other words, reading this log cold, I would say that you got exactly 1 cursor - the synaptics touchpad - and that you didn't draw anything.
Of course, I'm fairly new to wintab32, so another reasonable explanation is that I just don't know what I'm talking about <grin>.
However, the log does suggest what's going on. That is, it looks like you could reasonably have 1 of 2 configurations, depending on an external mouse: 0 Touchpad 1 Stylus 2 Cursor 3 Eraser or 0 Touchpad 1 Mouse 2 Stylus 3 Cursor 4 Eraser
In the former case, you should be able to draw, but not erase. In the latter case, the stylus will act as the eraser, and everything else will draw. (Devices 2 and 5 are erasers, everything else draws).
Does that make sense?
http://bugs.winehq.org/show_bug.cgi?id=10413
Jeremy White jwhite@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED
--- Comment #9 from Jeremy White jwhite@codeweavers.com 2007-12-26 13:56:52 --- I believe that this is now fixed; this is the key commit:
http://source.winehq.org/git/wine.git/?a=commit;h=64a929c48353b68cc4cd177d37...
However, you'd want to update to latest git, as further commits go on to fix pressure + tilt as well.
This is now in git head; that should be part of Wine 0.9.52.
http://bugs.winehq.org/show_bug.cgi?id=10413
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Dan Kegel dank@kegel.com 2008-01-28 05:40:28 --- Closing all RESOLVED FIXED bugs older than four weeks.
http://bugs.winehq.org/show_bug.cgi?id=10413
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified