[Xfce4-commits] [apps/xfdashboard] 01/01: Get rid of deprecated Cogl functions in XfdashboardEmblemEffect
noreply at xfce.org
noreply at xfce.org
Tue Aug 2 13:21:35 CEST 2016
This is an automated email from the git hooks/post-receive script.
nomad pushed a commit to branch master
in repository apps/xfdashboard.
commit 8c35a0dd335d2403092e78b03a8eb4811204886b
Author: Stephan Haller <nomad at froevel.de>
Date: Tue Aug 2 13:21:05 2016 +0200
Get rid of deprecated Cogl functions in XfdashboardEmblemEffect
---
libxfdashboard/emblem-effect.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/libxfdashboard/emblem-effect.c b/libxfdashboard/emblem-effect.c
index 2b7cf04..59f4374 100644
--- a/libxfdashboard/emblem-effect.c
+++ b/libxfdashboard/emblem-effect.c
@@ -135,6 +135,7 @@ static void _xfdashboard_emblem_effect_paint(ClutterEffect *inEffect, ClutterEff
ClutterActorBox textureCoordBox;
gfloat offset;
gfloat oversize;
+ CoglFramebuffer *framebuffer;
g_return_if_fail(XFDASHBOARD_IS_EMBLEM_EFFECT(inEffect));
@@ -315,12 +316,13 @@ static void _xfdashboard_emblem_effect_paint(ClutterEffect *inEffect, ClutterEff
return;
}
- cogl_push_source(priv->pipeline);
- cogl_rectangle_with_texture_coords(rectangleBox.x1, rectangleBox.y1,
- rectangleBox.x2, rectangleBox.y2,
- textureCoordBox.x1, textureCoordBox.y1,
- textureCoordBox.x2, textureCoordBox.y2);
- cogl_pop_source();
+ framebuffer=cogl_get_draw_framebuffer();
+ cogl_framebuffer_draw_textured_rectangle(framebuffer,
+ priv->pipeline,
+ rectangleBox.x1, rectangleBox.y1,
+ rectangleBox.x2, rectangleBox.y2,
+ textureCoordBox.x1, textureCoordBox.y1,
+ textureCoordBox.x2, textureCoordBox.y2);
}
/* IMPLEMENTATION: GObject */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list