[gtk] gl renderer: Care about offset when rendering border nodes
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] gl renderer: Care about offset when rendering border nodes
- Date: Tue, 4 Dec 2018 05:31:31 +0000 (UTC)
commit aead150ce25974d2cf74643d0e77b6d46a248c26
Author: Timm Bäder <mail baedert org>
Date: Mon Dec 3 17:53:04 2018 +0100
gl renderer: Care about offset when rendering border nodes
gsk/gl/gskglrenderer.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 51f7fe86cd..b4a0d41abd 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -536,8 +536,8 @@ render_border_node (GskGLRenderer *self,
RenderOpBuilder *builder)
{
const float scale = ops_get_scale (builder);
- const float min_x = node->bounds.origin.x;
- const float min_y = node->bounds.origin.y;
+ const float min_x = builder->dx + node->bounds.origin.x;
+ const float min_y = builder->dy + node->bounds.origin.y;
const float max_x = min_x + node->bounds.size.width;
const float max_y = min_y + node->bounds.size.height;
const GdkRGBA *colors = gsk_border_node_peek_colors (node);
@@ -779,6 +779,7 @@ render_offset_node (GskGLRenderer *self,
case GSK_COLOR_NODE:
case GSK_COLOR_MATRIX_NODE:
case GSK_SHADOW_NODE:
+ case GSK_BORDER_NODE:
{
ops_offset (builder, dx, dy);
gsk_gl_renderer_add_render_ops (self, child, builder);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]