[gtk] gl renderer: Shorten function
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] gl renderer: Shorten function
- Date: Fri, 11 Oct 2019 20:32:01 +0000 (UTC)
commit 6a4c7787910743932cd9b7d366331b02c2348244
Author: Timm Bäder <mail baedert org>
Date: Fri Oct 11 21:52:26 2019 +0200
gl renderer: Shorten function
gsk/gl/gskglrenderer.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index f46542c74b..8d36909c5a 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -1070,12 +1070,10 @@ render_linear_gradient_node (GskGLRenderer *self,
}
op->linear_gradient.n_color_stops = n_color_stops;
- op->linear_gradient.start_point = *start;
- op->linear_gradient.start_point.x += builder->dx;
- op->linear_gradient.start_point.y += builder->dy;
- op->linear_gradient.end_point = *end;
- op->linear_gradient.end_point.x += builder->dx;
- op->linear_gradient.end_point.y += builder->dy;
+ op->linear_gradient.start_point.x = start->x + builder->dx;
+ op->linear_gradient.start_point.y = start->y + builder->dy;
+ op->linear_gradient.end_point.x = end->x + builder->dx;
+ op->linear_gradient.end_point.y = end->y + builder->dy;
ops_draw (builder, vertex_data);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]