macos: move setNeedsDisplay helper to GdkMacosCairoView

This isn't needed in the base class, which will eventually get a GL subclass.
This commit is contained in:
Christian Hergert 2020-10-29 09:33:59 -07:00
parent 931f130377
commit 60e67a62e6
2 changed files with 6 additions and 6 deletions

View File

@ -57,12 +57,6 @@
return self;
}
-(void)setNeedsDisplay:(BOOL)needsDisplay
{
for (id child in [self subviews])
[child setNeedsDisplay:needsDisplay];
}
-(void)setOpaqueRegion:(cairo_region_t *)region
{
/* Do nothing */

View File

@ -53,6 +53,12 @@
return YES;
}
-(void)setNeedsDisplay:(BOOL)needsDisplay
{
for (id child in [self subviews])
[child setNeedsDisplay:needsDisplay];
}
-(void)setCairoSurface:(cairo_surface_t *)cairoSurface
withDamage:(cairo_region_t *)cairoRegion
{