Mac: Fix window redrawing having artifacts and mouse movement not being registered when using coca backend with macOS tiger

This commit is contained in:
UnknownShadow200 2021-02-08 21:02:40 +11:00
parent 6131a3f8cf
commit 080032b922

View File

@ -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];