[gtk] gl renderer: Remove GskRoundedRect initializaion
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] gl renderer: Remove GskRoundedRect initializaion
- Date: Mon, 25 Feb 2019 07:47:16 +0000 (UTC)
commit e836c575ce9e0e293bdab65c07c74ea22e5530df
Author: Timm Bäder <mail baedert org>
Date: Sat Feb 23 16:59:46 2019 +0100
gl renderer: Remove GskRoundedRect initializaion
gsk/gl/gskglrenderer.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index e0d2157d13..e8e1e65ac4 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -2896,7 +2896,7 @@ gsk_gl_renderer_do_render (GskRenderer *renderer,
/* Initial clip is self->render_region! */
if (self->render_region != NULL)
{
- GskRoundedRect transformed_render_region = { 0, };
+ graphene_rect_t transformed_render_region;
cairo_rectangle_int_t render_extents;
cairo_region_get_extents (self->render_region, &render_extents);
@@ -2906,8 +2906,12 @@ gsk_gl_renderer_do_render (GskRenderer *renderer,
render_extents.y,
render_extents.width,
render_extents.height),
- &transformed_render_region.bounds);
- ops_push_clip (&render_op_builder, &transformed_render_region);
+ &transformed_render_region);
+ ops_push_clip (&render_op_builder,
+ &GSK_ROUNDED_RECT_INIT (transformed_render_region.origin.x,
+ transformed_render_region.origin.y,
+ transformed_render_region.size.width,
+ transformed_render_region.size.height));
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]