May 19, 2026
5:12 p.m.
Brendan Shanks (@bshanks) commented about dlls/winemac.drv/cocoa_window.m:
+@interface CAContextSwapChain : NSObject <WineMetalSwapChain> +{ + void* hwnd; + macdrv_metal_device device; + CAMetalLayer* offscreen_layer; + CAContext* remote_context; + CAContextID context_id; +} + +- (id) initWithHwnd:(void*)hwnd bounds:(CGRect)bounds; + +@end + +@implementation CAContextSwapChain + +- (id) initWithHwnd:(void*)newHwnd bounds:(CGRect)bounds Also can be `instancetype`
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10935#note_140622