did some code cleanup
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
b585ad69b7
commit
f700e90d23
2 changed files with 6 additions and 6 deletions
|
|
@ -117,7 +117,6 @@
|
||||||
- (void)getCursorCoord:(MwPoint *)point;
|
- (void)getCursorCoord:(MwPoint *)point;
|
||||||
- (void)getScreenSize:(MwRect *)rect;
|
- (void)getScreenSize:(MwRect *)rect;
|
||||||
- (void)destroy;
|
- (void)destroy;
|
||||||
- (void)setHandle:(MwLL)h;
|
|
||||||
|
|
||||||
- (NSWindow *)parentWindow;
|
- (NSWindow *)parentWindow;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
#include "Mw/BaseTypes.h"
|
|
||||||
#include "Mw/LowLevel.h"
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
|
#pragma clang push
|
||||||
|
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
|
||||||
@implementation MilskoCocoaPixmap
|
@implementation MilskoCocoaPixmap
|
||||||
|
|
||||||
+ (MilskoCocoaPixmap *)newWithWidth:(int)width height:(int)height {
|
+ (MilskoCocoaPixmap *)newWithWidth:(int)width height:(int)height {
|
||||||
|
|
@ -92,8 +93,8 @@
|
||||||
backing:NSBackingStoreBuffered
|
backing:NSBackingStoreBuffered
|
||||||
defer:NO];
|
defer:NO];
|
||||||
}
|
}
|
||||||
c->window.delegate =
|
c->window.delegate = (id<NSWindowDelegate>)[[MilskoCocoaWindowDelegate alloc]
|
||||||
[[MilskoCocoaWindowDelegate alloc] initWithWin:c->window];
|
initWithWin:c->window];
|
||||||
|
|
||||||
[c->window makeKeyAndOrderFront:c->application];
|
[c->window makeKeyAndOrderFront:c->application];
|
||||||
|
|
||||||
|
|
@ -625,10 +626,10 @@ static int MwLLPendingImpl(MwLL handle) {
|
||||||
MwLLDispatch(handle, draw, NULL);
|
MwLLDispatch(handle, draw, NULL);
|
||||||
return 1;
|
return 1;
|
||||||
};
|
};
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void MwLLNextEventImpl(MwLL handle) {
|
static void MwLLNextEventImpl(MwLL handle) {
|
||||||
|
|
||||||
MilskoCocoa *h = handle->cocoa.real;
|
MilskoCocoa *h = handle->cocoa.real;
|
||||||
[h getNextEvent];
|
[h getNextEvent];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue