[gtk/wip/chergert/gdk-macos-gl-renderer: 131/139] macos: move setNeedsDisplay:BOOL to cairo implementation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/gdk-macos-gl-renderer: 131/139] macos: move setNeedsDisplay:BOOL to cairo implementation
- Date: Tue, 27 Oct 2020 17:30:59 +0000 (UTC)
commit cc348a71172a90241d83efc0bbb2abb2ab7f7404
Author: Christian Hergert <chergert redhat com>
Date: Wed Oct 21 17:06:42 2020 -0700
macos: move setNeedsDisplay:BOOL to cairo implementation
This isn't needed by the upcoming GL subview.
gdk/macos/GdkMacosBaseView.c | 6 ------
gdk/macos/GdkMacosCairoView.c | 6 ++++++
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gdk/macos/GdkMacosBaseView.c b/gdk/macos/GdkMacosBaseView.c
index 24be4af00e..c4ba8c1020 100644
--- a/gdk/macos/GdkMacosBaseView.c
+++ b/gdk/macos/GdkMacosBaseView.c
@@ -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 */
diff --git a/gdk/macos/GdkMacosCairoView.c b/gdk/macos/GdkMacosCairoView.c
index e6a31178b4..2f82488912 100644
--- a/gdk/macos/GdkMacosCairoView.c
+++ b/gdk/macos/GdkMacosCairoView.c
@@ -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
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]