Wintab32 (Patch 8 of 8) -- Expose more XInput events through the
wintab api.
Robert North
7ownq0k402 at sneakemail.com
Fri Jan 21 12:58:12 CST 2005
|This is the final patch in the series.
This set of patches works towards better quality painting in Painter5.
Tested on Painter5 & Photoshop 6.
Changelog:
*Bring wintab in line with Jeremy's X11 event timing patches again.
-------------- next part --------------
Index: dlls/x11drv/wintab.c
===================================================================
--- dlls/x11drv/wintab.c (revision 160)
+++ dlls/x11drv/wintab.c (revision 161)
@@ -630,7 +630,7 @@
/* Set cursor to inverted if cursor is the eraser */
gMsgPacket.pkStatus = (cursor->TYPE == 0xc85a ?TPS_INVERT:0);
set_button_state(button->deviceid);
- gMsgPacket.pkTime = button->time;
+ gMsgPacket.pkTime = EVENT_x11_time_to_win32_time(button->time);
gMsgPacket.pkSerialNumber = gSerial++;
gMsgPacket.pkCursor = button->deviceid;
gMsgPacket.pkX = button->axis_data[0];
@@ -667,7 +667,7 @@
/* Set cursor to inverted if cursor is the eraser */
gMsgPacket.pkStatus = (cursor->TYPE == 0xc85a ?TPS_INVERT:0);
gMsgPacket.pkStatus |= (event->type==proximity_out_type)?TPS_PROXIMITY:0;
- gMsgPacket.pkTime = proximity->time;
+ gMsgPacket.pkTime = EVENT_x11_time_to_win32_time(proximity->time);
gMsgPacket.pkSerialNumber = gSerial++;
gMsgPacket.pkCursor = proximity->deviceid;
gMsgPacket.pkX = proximity->axis_data[0];
More information about the wine-patches
mailing list