diff options
author | Timm Bäder <mail@baedert.org> | 2019-12-18 09:48:25 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-01-07 17:27:16 +0100 |
commit | cb2f523994bffa1e4ebc6d4f84a7aaf715ef3300 (patch) | |
tree | 1bc26277249ba17e170d085c0a276a882fb23b78 /gsk/gskrendernodeimpl.c | |
parent | 075a0ccb5e3a6c4dc6d81688499c19b3741825bf (diff) | |
download | gtk+-cb2f523994bffa1e4ebc6d4f84a7aaf715ef3300.tar.gz |
rendernodes: Use floats for everything
Diffstat (limited to 'gsk/gskrendernodeimpl.c')
-rw-r--r-- | gsk/gskrendernodeimpl.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c index 8c7be01555..d0902845d5 100644 --- a/gsk/gskrendernodeimpl.c +++ b/gsk/gskrendernodeimpl.c @@ -2197,7 +2197,7 @@ struct _GskOpacityNode GskRenderNode render_node; GskRenderNode *child; - double opacity; + float opacity; }; static void @@ -2267,7 +2267,7 @@ static const GskRenderNodeClass GSK_OPACITY_NODE_CLASS = { */ GskRenderNode * gsk_opacity_node_new (GskRenderNode *child, - double opacity) + float opacity) { GskOpacityNode *self; @@ -2301,7 +2301,7 @@ gsk_opacity_node_get_child (GskRenderNode *node) return self->child; } -double +float gsk_opacity_node_get_opacity (GskRenderNode *node) { GskOpacityNode *self = (GskOpacityNode *) node; @@ -3278,7 +3278,7 @@ struct _GskCrossFadeNode GskRenderNode *start; GskRenderNode *end; - double progress; + float progress; }; static void @@ -3352,7 +3352,7 @@ static const GskRenderNodeClass GSK_CROSS_FADE_NODE_CLASS = { GskRenderNode * gsk_cross_fade_node_new (GskRenderNode *start, GskRenderNode *end, - double progress) + float progress) { GskCrossFadeNode *self; @@ -3390,7 +3390,7 @@ gsk_cross_fade_node_get_end_child (GskRenderNode *node) return self->end; } -double +float gsk_cross_fade_node_get_progress (GskRenderNode *node) { GskCrossFadeNode *self = (GskCrossFadeNode *) node; @@ -3634,7 +3634,7 @@ struct _GskBlurNode GskRenderNode render_node; GskRenderNode *child; - double radius; + float radius; }; static void @@ -3882,7 +3882,7 @@ static const GskRenderNodeClass GSK_BLUR_NODE_CLASS = { */ GskRenderNode * gsk_blur_node_new (GskRenderNode *child, - double radius) + float radius) { GskBlurNode *self; float clip_radius = gsk_cairo_blur_compute_pixels (radius); @@ -3911,7 +3911,7 @@ gsk_blur_node_get_child (GskRenderNode *node) return self->child; } -double +float gsk_blur_node_get_radius (GskRenderNode *node) { GskBlurNode *self = (GskBlurNode *) node; |