aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/mac_gl.m
diff options
context:
space:
mode:
authorMichael Fisher <mfisher31@gmail.com>2019-09-01 03:02:08 -0400
committerDavid Robillard <d@drobilla.net>2019-09-03 07:27:46 +0200
commit0706f4a121f6f9c5b96a19c4272a8636fc230cbc (patch)
treee1f58000e6003ccd3ddfb57d93016612756a3cec /pugl/detail/mac_gl.m
parent10bb9a2862b4d306eee6dc392d91eb727ea4faa9 (diff)
downloadpugl-0706f4a121f6f9c5b96a19c4272a8636fc230cbc.tar.gz
pugl-0706f4a121f6f9c5b96a19c4272a8636fc230cbc.tar.bz2
pugl-0706f4a121f6f9c5b96a19c4272a8636fc230cbc.zip
Mac: Dispatch expose events from drawing view
Diffstat (limited to 'pugl/detail/mac_gl.m')
-rw-r--r--pugl/detail/mac_gl.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/pugl/detail/mac_gl.m b/pugl/detail/mac_gl.m
index 4a6e39a..6cdf6f6 100644
--- a/pugl/detail/mac_gl.m
+++ b/pugl/detail/mac_gl.m
@@ -91,6 +91,12 @@ typedef NSUInteger NSWindowStyleMask;
[wrapper dispatchConfigure:[self bounds]];
}
+- (void) drawRect:(NSRect)rect
+{
+ PuglWrapperView* wrapper = (PuglWrapperView*)[self superview];
+ [wrapper dispatchExpose:rect];
+}
+
@end
static int