mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +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 {
|
- (void)update {
|
||||||
[super update];
|
[super update];
|
||||||
gio_onDraw((__bridge CFTypeRef)self);
|
[self setNeedsDisplay:YES];
|
||||||
}
|
}
|
||||||
- (void)drawRect:(NSRect)r {
|
- (void)drawRect:(NSRect)r {
|
||||||
gio_onDraw((__bridge CFTypeRef)self);
|
gio_onDraw((__bridge CFTypeRef)self);
|
||||||
|
|||||||
Reference in New Issue
Block a user