[9ae8f17cfc8ba7fd8fb34b2a194ef965a3b36a40839a46eeab1350e916692ac9/wip/baedert/for-master: 94/96] gl renderer: Remove unused flag
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [9ae8f17cfc8ba7fd8fb34b2a194ef965a3b36a40839a46eeab1350e916692ac9/wip/baedert/for-master: 94/96] gl renderer: Remove unused flag
- Date: Wed, 8 Jul 2020 03:46:20 +0000 (UTC)
commit 7fa74a3f64d033dc90a58e673f23d352616961a4
Author: Timm Bäder <mail baedert org>
Date: Sun Jul 5 13:58:52 2020 +0200
gl renderer: Remove unused flag
gsk/gl/gskglrenderer.c | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 699da4f35d..241e7dcce5 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -70,7 +70,6 @@ typedef enum
RESET_CLIP = 1 << 1,
RESET_OPACITY = 1 << 2,
DUMP_FRAMEBUFFER = 1 << 3,
- CENTER_CHILD = 1 << 4,
NO_CACHE_PLZ = 1 << 5,
} OffscreenFlags;
@@ -3326,19 +3325,8 @@ add_offscreen_ops (GskGLRenderer *self,
bounds->origin.y * scale,
width, height));
- if (flags & CENTER_CHILD)
- {
- ops_offset (builder,
- (bounds->size.width - child_node->bounds.size.width) / 2.0 -
- child_node->bounds.origin.x,
- (bounds->size.height - child_node->bounds.size.height) / 2.0 -
- child_node->bounds.origin.y);
- }
- else
- {
- builder->dx = 0;
- builder->dy = 0;
- }
+ builder->dx = 0;
+ builder->dy = 0;
if (flags & RESET_OPACITY)
prev_opacity = ops_set_opacity (builder, 1.0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]