[gtk/wip/chergert/glproto: 465/493] branch unnecessary
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 465/493] branch unnecessary
- Date: Fri, 19 Feb 2021 02:25:24 +0000 (UTC)
commit 95832fcfca63f8cfbc01ae2ffe3347213c7ea99d
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 16 14:51:34 2021 -0800
branch unnecessary
gsk/next/gskglrenderjob.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index 831409fda0..d47636e26f 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -261,13 +261,10 @@ static inline gboolean G_GNUC_PURE
rect_contains_rect (const graphene_rect_t *r1,
const graphene_rect_t *r2)
{
- if (r2->origin.x >= r1->origin.x &&
- (r2->origin.x + r2->size.width) <= (r1->origin.x + r1->size.width) &&
- r2->origin.y >= r1->origin.y &&
- (r2->origin.y + r2->size.height) <= (r1->origin.y + r1->size.height))
- return TRUE;
- else
- return FALSE;
+ return r2->origin.x >= r1->origin.x &&
+ (r2->origin.x + r2->size.width) <= (r1->origin.x + r1->size.width) &&
+ r2->origin.y >= r1->origin.y &&
+ (r2->origin.y + r2->size.height) <= (r1->origin.y + r1->size.height);
}
static inline gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]