[PATCH 2/2] winemac: Properly ignore attempts to set a window's shape to its current shape.

Ken Thomases ken at codeweavers.com
Thu Oct 2 17:06:19 CDT 2014


NSBezierPath doesn't override the -isEqual: method to actually compare paths,
so it just falls back to object identity which, in our case, makes paths seem
like they're never equal.

Also, memcmp()-ing the rectangle array is almost certainly faster than any
general test for equality between two paths.
---
dlls/winemac.drv/cocoa_window.h |  1 +
dlls/winemac.drv/cocoa_window.m | 25 +++++++++++++++++--------
2 files changed, 18 insertions(+), 8 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-winemac-Properly-ignore-attempts-to-set-a-window-s-s.patch
Type: text/x-patch
Size: 2915 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20141002/d67f51ae/attachment.bin>


More information about the wine-patches mailing list