From 080032b922b440efdee5087c8dbddac9ebe6098e Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 8 Feb 2021 21:02:40 +1100 Subject: [PATCH] Mac: Fix window redrawing having artifacts and mouse movement not being registered when using coca backend with macOS tiger --- src/interop_cocoa.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/interop_cocoa.m b/src/interop_cocoa.m index 5c0e7742e..ad4d4487f 100644 --- a/src/interop_cocoa.m +++ b/src/interop_cocoa.m @@ -165,7 +165,8 @@ void Window_Create(int width, int height) { rect.size.height = height; winHandle = [CCWindow alloc]; - [winHandle initWithContentRect:rect styleMask:WIN_MASK backing:0 defer:false]; + [winHandle initWithContentRect:rect styleMask:WIN_MASK backing:NSBackingStoreBuffered defer:false]; + [winHandle setAcceptsMouseMovedEvents:YES]; Window_CommonCreate(); del = [CCWindowDelegate alloc];