diff options
author | June McEnroe <june@causal.agency> | 2018-09-02 17:01:50 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-09-02 17:01:50 -0400 |
commit | defede1691f51e2078b98e298979a60087708fb0 (patch) | |
tree | 5a558209fbad30da6eeafed7faf719691e605339 /gfx/cocoa.m | |
parent | Use PascalCase for constants (diff) | |
download | src-defede1691f51e2078b98e298979a60087708fb0.tar.gz src-defede1691f51e2078b98e298979a60087708fb0.zip |
Use PascalCase for constants in gfx
Diffstat (limited to '')
-rw-r--r-- | gfx/cocoa.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gfx/cocoa.m b/gfx/cocoa.m index 6c0f0d66..237202d9 100644 --- a/gfx/cocoa.m +++ b/gfx/cocoa.m @@ -23,8 +23,6 @@ #import "gfx.h" -#define UNUSED __attribute__((unused)) - @interface BufferView : NSView { size_t bufSize; uint32_t *buf; @@ -61,7 +59,8 @@ [self draw]; } -- (void) drawRect: (NSRect) UNUSED dirtyRect { +- (void) drawRect: (NSRect) dirtyRect { + (void)dirtyRect; NSSize size = [self frame].size; CGContextRef ctx = [[NSGraphicsContext currentContext] CGContext]; CGImageRef image = CGImageCreate( @@ -106,7 +105,8 @@ @implementation Delegate - (BOOL) applicationShouldTerminateAfterLastWindowClosed: - (NSApplication *) UNUSED sender { + (NSApplication *) sender { + (void)sender; return YES; } @end |