winemac: Fix a crash on versions of OS X prior to 10.9 which don't have the -[NSImage...
commit682820d3cb5abf8fc1b0d98a3f9f9d1e4ed16fc9
authorKen Thomases <ken@codeweavers.com>
Tue, 10 Nov 2015 08:29:18 +0000 (10 02:29 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 10 Nov 2015 09:29:27 +0000 (10 18:29 +0900)
tree2d63b3d4a639e3ac8776378caa3b830e5cde2283
parentb06ff1e55f6e0b2a2d0bcf08e8f67b4e3f93d5e7
winemac: Fix a crash on versions of OS X prior to 10.9 which don't have the -[NSImage drawInRect:] method.

[image drawInRect:rect] is documented as being "exactly equivalent to calling
[image drawInRect:rect fromRect:NSZeroRect operation:NSCompositeSourceOver
fraction:1 respectFlipped:YES hints:nil]".  So, that's what I replace it with.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winemac.drv/cocoa_window.m