mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 02:20:43 -05:00
Updated doc example to use ClutterPoint.
This commit is contained in:
parent
b1fa6434e1
commit
29271a2d73
@ -16,7 +16,7 @@ static void
|
|||||||
_convert_clutter_path_node_to_cogl_path (const ClutterPathNode *node,
|
_convert_clutter_path_node_to_cogl_path (const ClutterPathNode *node,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
ClutterKnot knot;
|
ClutterPoint knot;
|
||||||
|
|
||||||
g_return_if_fail (node != NULL);
|
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:
|
case CLUTTER_PATH_MOVE_TO:
|
||||||
knot = node->points[0];
|
knot = node->points[0];
|
||||||
cogl_path_move_to (knot.x, knot.y);
|
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;
|
break;
|
||||||
case CLUTTER_PATH_LINE_TO:
|
case CLUTTER_PATH_LINE_TO:
|
||||||
knot = node->points[0];
|
knot = node->points[0];
|
||||||
cogl_path_line_to (knot.x, knot.y);
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user