[clutter] Updated doc example to use ClutterPoint.
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] Updated doc example to use ClutterPoint.
- Date: Sat, 4 May 2013 14:48:51 +0000 (UTC)
commit 29271a2d73f1e918aeeaef6b693f33a1fe2858d8
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Sat Apr 13 13:02:57 2013 -0400
Updated doc example to use ClutterPoint.
.../examples/events-pointer-motion-scribbler.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/doc/cookbook/examples/events-pointer-motion-scribbler.c
b/doc/cookbook/examples/events-pointer-motion-scribbler.c
index 4d5168d..b3af8e2 100644
--- a/doc/cookbook/examples/events-pointer-motion-scribbler.c
+++ b/doc/cookbook/examples/events-pointer-motion-scribbler.c
@@ -16,7 +16,7 @@ static void
_convert_clutter_path_node_to_cogl_path (const ClutterPathNode *node,
gpointer data)
{
- ClutterKnot knot;
+ ClutterPoint knot;
g_return_if_fail (node != NULL);
@@ -25,12 +25,12 @@ _convert_clutter_path_node_to_cogl_path (const ClutterPathNode *node,
case CLUTTER_PATH_MOVE_TO:
knot = node->points[0];
cogl_path_move_to (knot.x, knot.y);
- g_debug ("move to %d, %d", knot.x, knot.y);
+ g_debug ("move to %f, %f", knot.x, knot.y);
break;
case CLUTTER_PATH_LINE_TO:
knot = node->points[0];
cogl_path_line_to (knot.x, knot.y);
- g_debug ("line to %d, %d", knot.x, knot.y);
+ g_debug ("line to %f, %f", knot.x, knot.y);
break;
default:
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]