mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-26 19:13:05 +00:00
use milsko's typedefs instead in cocoa
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include <signal.h>
|
||||
#include <dirent.h>
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
#include <AppKit/NSGraphicsContext.h>
|
||||
#include <Mw/Milsko.h>
|
||||
#include <assert.h>
|
||||
#include <limits.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <AppKit/NSGraphicsContext.h>
|
||||
|
||||
#include "../../external/stb_ds.h"
|
||||
#include "Mw/BaseTypes.h"
|
||||
|
||||
@implementation MilskoCocoaPixmap
|
||||
|
||||
@@ -176,7 +173,7 @@
|
||||
MaxY:(int)maxy {
|
||||
};
|
||||
- (void)makeBorderless:(int)toggle {
|
||||
uint32_t mask = [self->window styleMask];
|
||||
MwU32 mask = [self->window styleMask];
|
||||
if(mask & NSBorderlessWindowMask) {
|
||||
mask ^= NSBorderlessWindowMask;
|
||||
mask |= NSTitledWindowMask;
|
||||
@@ -231,7 +228,7 @@
|
||||
self->width,
|
||||
self->height,
|
||||
CHAR_BIT,
|
||||
self->width * sizeof(uint32_t),
|
||||
self->width * sizeof(MwU32),
|
||||
self->space, kCGBitmapByteOrder32Host | kCGImageAlphaPremultipliedLast);
|
||||
assert(self->cg);
|
||||
printf("%p\n", self->cg);
|
||||
|
||||
Reference in New Issue
Block a user