mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-02 07:57:29 +00:00
ui/app: (macOS) avoid double-drawing in NSOpenGLView update
Instead of drwaing twice when updated, schedule a redraw. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ CVDisplayLinkRef displayLink;
|
||||
}
|
||||
- (void)update {
|
||||
[super update];
|
||||
gio_onDraw((__bridge CFTypeRef)self);
|
||||
[self setNeedsDisplay:YES];
|
||||
}
|
||||
- (void)drawRect:(NSRect)r {
|
||||
gio_onDraw((__bridge CFTypeRef)self);
|
||||
|
||||
Reference in New Issue
Block a user