[cluttermm_tutorial] Replace deprecated cogl_color_set_from_4ub() with cogl_color_init_from_4ub().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cluttermm_tutorial] Replace deprecated cogl_color_set_from_4ub() with cogl_color_init_from_4ub().
- Date: Thu, 17 Apr 2014 19:23:05 +0000 (UTC)
commit c6126192cf6f7e6824dca1287997dfad7bedd7b5
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Apr 17 20:57:42 2014 +0200
Replace deprecated cogl_color_set_from_4ub() with cogl_color_init_from_4ub().
examples/custom_actor/triangle_actor.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/examples/custom_actor/triangle_actor.cc b/examples/custom_actor/triangle_actor.cc
index 013fb04..a904759 100644
--- a/examples/custom_actor/triangle_actor.cc
+++ b/examples/custom_actor/triangle_actor.cc
@@ -74,7 +74,7 @@ void Triangle::on_paint()
CoglColor coglcolor;
// Paint the triangle with the actor's color:
- cogl_color_set_from_4ub(&coglcolor,
+ cogl_color_init_from_4ub(&coglcolor,
color_.get_red(),
color_.get_green(),
color_.get_blue(),
@@ -89,7 +89,7 @@ void Triangle::pick_vfunc(const Clutter::Color& color)
// This is used by Clutter to detect the actor under the cursor
// by identifying the unique color under the cursor.
CoglColor coglcolor;
- cogl_color_set_from_4ub(&coglcolor,
+ cogl_color_init_from_4ub(&coglcolor,
color.get_red(),
color.get_green(),
color.get_blue(),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]