[PATCH 2/5] winemac.drv: Use a mask layer to support window regions.

Huw Davies huw at codeweavers.com
Wed Sep 1 04:45:55 CDT 2021


On Tue, Aug 31, 2021 at 05:27:34PM -0500, Chip Davis wrote:
> Signed-off-by: Chip Davis <cdavis at codeweavers.com>
> ---
>  dlls/winemac.drv/cocoa_window.h |  2 -
>  dlls/winemac.drv/cocoa_window.m | 89 ++++++++++++++++-----------------
>  2 files changed, 44 insertions(+), 47 deletions(-)

This is producing some (additional) warnings on macOS 10.13:

gcc -m32 -c -o dlls/winemac.drv/cocoa_window.o dlls/winemac.drv/cocoa_window.m -Idlls/winemac.drv -Iinclude -D__WINESRC__ \
  -D_REENTRANT -fPIC -fasynchronous-unwind-tables -Wall -pipe -fno-stack-protector \
  -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self \
  -Wno-pragma-pack -Wstrict-prototypes -Wtype-limits -Wvla -Wwrite-strings -Wpointer-arith -gdwarf-2 \
  -gstrict-dwarf -fno-omit-frame-pointer -O2 -g -Wno-deprecated-declarations -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
dlls/winemac.drv/cocoa_window.m:2040:23: warning: incompatible pointer types initializing 'CAShapeLayer *' with an expression of type 'CALayer * _Nullable'
      [-Wincompatible-pointer-types]
        CAShapeLayer* mask = layer.mask;
                      ^      ~~~~~~~~~~
dlls/winemac.drv/cocoa_window.m:2254:50: warning: 'CALayer' may not respond to 'isEmptyShaped'
        return ([[[self contentView] layer].mask isEmptyShaped]);
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^

Huw.



More information about the wine-devel mailing list