did some code cleanup
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoI_xD 2026-03-04 20:47:55 -07:00
commit f700e90d23
2 changed files with 6 additions and 6 deletions

View file

@ -117,7 +117,6 @@
- (void)getCursorCoord:(MwPoint *)point;
- (void)getScreenSize:(MwRect *)rect;
- (void)destroy;
- (void)setHandle:(MwLL)h;
- (NSWindow *)parentWindow;

View file

@ -1,7 +1,8 @@
#include "Mw/BaseTypes.h"
#include "Mw/LowLevel.h"
#include <Mw/Milsko.h>
#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<NSWindowDelegate>)[[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];
}