[gtk/wip/baedert/for-master: 5/13] gl renderer: Support scaleX/Y better when rendering radial gradients
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 5/13] gl renderer: Support scaleX/Y better when rendering radial gradients
- Date: Wed, 23 Sep 2020 04:12:17 +0000 (UTC)
commit 4d7df39094ccca0324c0748e97062f5a9235916e
Author: Timm Bäder <mail baedert org>
Date: Sat Sep 19 17:56:25 2020 +0200
gl renderer: Support scaleX/Y better when rendering radial gradients
We should do this everywhere, but this is a start.
gsk/gl/gskglrenderer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 96aecbd70b..80b6ba42d8 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -1197,7 +1197,6 @@ render_radial_gradient_node (GskGLRenderer *self,
GskRenderNode *node,
RenderOpBuilder *builder)
{
- const float scale = ops_get_scale (builder);
const int n_color_stops = MIN (8, gsk_radial_gradient_node_get_n_color_stops (node));
const GskColorStop *stops = gsk_radial_gradient_node_peek_color_stops (node, NULL);
const graphene_point_t *center = gsk_radial_gradient_node_peek_center (node);
@@ -1213,7 +1212,8 @@ render_radial_gradient_node (GskGLRenderer *self,
builder->dx + center->x,
builder->dy + center->y,
start, end,
- hradius * scale, vradius * scale);
+ hradius * builder->scale_x,
+ vradius * builder->scale_y);
load_vertex_data (ops_draw (builder, NULL), node, builder);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]