[gtk/wip/chergert/quartz4u: 125/146] macos: simplify conditional
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/quartz4u: 125/146] macos: simplify conditional
- Date: Fri, 19 Jun 2020 18:19:19 +0000 (UTC)
commit df1b061008702ef6019fa28e311f30b88cee281c
Author: Christian Hergert <chergert redhat com>
Date: Thu Jun 4 14:24:13 2020 -0700
macos: simplify conditional
gdk/macos/gdkmacossurface.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index 221390ae2b..f19f8ed1e7 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -98,11 +98,9 @@ gdk_macos_surface_set_opaque_region (GdkSurface *surface,
g_assert (GDK_IS_MACOS_SURFACE (surface));
- if (!(nsview = _gdk_macos_surface_get_view (GDK_MACOS_SURFACE (surface))) ||
- !GDK_IS_MACOS_CAIRO_VIEW (nsview))
- return;
-
- [(GdkMacosCairoView *)nsview setOpaqueRegion:region];
+ if ((nsview = _gdk_macos_surface_get_view (GDK_MACOS_SURFACE (surface))) &&
+ GDK_IS_MACOS_CAIRO_VIEW (nsview))
+ [(GdkMacosCairoView *)nsview setOpaqueRegion:region];
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]