[gtk/wip/chergert/glproto: 487/526] use memcpy for corners
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 487/526] use memcpy for corners
- Date: Tue, 16 Feb 2021 01:14:39 +0000 (UTC)
commit dfd18eef83cdc79b64ad849a63ad6f90469227f1
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 9 12:01:31 2021 -0800
use memcpy for corners
gsk/next/gskglrenderjob.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index 650a7e4dc6..b2eca55b10 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -715,10 +715,7 @@ gsk_gl_render_job_transform_rounded_rect (GskGLRenderJob *job,
out_rect->bounds.origin.y = job->offset_y + rect->bounds.origin.y;
out_rect->bounds.size.width = rect->bounds.size.width;
out_rect->bounds.size.height = rect->bounds.size.height;
- out_rect->corner[0] = rect->corner[0];
- out_rect->corner[1] = rect->corner[1];
- out_rect->corner[2] = rect->corner[2];
- out_rect->corner[3] = rect->corner[3];
+ memcpy (out_rect->corner, rect->corner, sizeof rect->corner);
}
static inline gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]