From f700e90d23d5752585a728c54ecf35d4d93dbb0f Mon Sep 17 00:00:00 2001 From: IoI_xD Date: Wed, 4 Mar 2026 20:47:55 -0700 Subject: [PATCH] did some code cleanup --- include/Mw/LowLevel/Cocoa.h | 1 - src/backend/cocoa.m | 11 ++++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/Mw/LowLevel/Cocoa.h b/include/Mw/LowLevel/Cocoa.h index 22bb29c..a36dbfd 100644 --- a/include/Mw/LowLevel/Cocoa.h +++ b/include/Mw/LowLevel/Cocoa.h @@ -117,7 +117,6 @@ - (void)getCursorCoord:(MwPoint *)point; - (void)getScreenSize:(MwRect *)rect; - (void)destroy; -- (void)setHandle:(MwLL)h; - (NSWindow *)parentWindow; diff --git a/src/backend/cocoa.m b/src/backend/cocoa.m index b9d1080..23e9373 100644 --- a/src/backend/cocoa.m +++ b/src/backend/cocoa.m @@ -1,7 +1,8 @@ -#include "Mw/BaseTypes.h" -#include "Mw/LowLevel.h" #include +#pragma clang push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + @implementation MilskoCocoaPixmap + (MilskoCocoaPixmap *)newWithWidth:(int)width height:(int)height { @@ -92,8 +93,8 @@ backing:NSBackingStoreBuffered defer:NO]; } - c->window.delegate = - [[MilskoCocoaWindowDelegate alloc] initWithWin:c->window]; + c->window.delegate = (id)[[MilskoCocoaWindowDelegate alloc] + initWithWin:c->window]; [c->window makeKeyAndOrderFront:c->application]; @@ -625,10 +626,10 @@ static int MwLLPendingImpl(MwLL handle) { MwLLDispatch(handle, draw, NULL); return 1; }; + return 0; } static void MwLLNextEventImpl(MwLL handle) { - MilskoCocoa *h = handle->cocoa.real; [h getNextEvent]; }