winemac.drv: Set the surface contents directly to the layer.
commit9e599a89e30c9ae403f5c7861e0f7690a03c4e22
authorChip Davis <cdavis@codeweavers.com>
Wed, 1 Sep 2021 14:28:23 +0000 (1 09:28 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 1 Sep 2021 15:10:05 +0000 (1 17:10 +0200)
tree59011cd0e70965a3085f6f30fe3f6d4dfa0dfd2f
parentcad2a7c8e1ad97eaf8bbb7479f8c5ad8dca8a10d
winemac.drv: Set the surface contents directly to the layer.

Use a top-down DIB for the surface instead of a bottom-up DIB. This
seems to match better with how Core Graphics expects to receive image
data, and allows us to avoid a transform to flip the surface image.

Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winemac.drv/cocoa_window.m
dlls/winemac.drv/macdrv_cocoa.h
dlls/winemac.drv/surface.c