paint-node: Initialize ClutterPaintOperation
Don't leave it to the compiler.
This commit is contained in:
parent
f1aa16069d
commit
e3cbec48a8
@ -70,6 +70,8 @@ struct _ClutterPaintNodeClass
|
|||||||
JsonNode*(* serialize) (ClutterPaintNode *node);
|
JsonNode*(* serialize) (ClutterPaintNode *node);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define PAINT_OP_INIT { PAINT_OP_INVALID }
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
PAINT_OP_INVALID = 0,
|
PAINT_OP_INVALID = 0,
|
||||||
PAINT_OP_TEX_RECT,
|
PAINT_OP_TEX_RECT,
|
||||||
|
@ -846,7 +846,7 @@ void
|
|||||||
clutter_paint_node_add_rectangle (ClutterPaintNode *node,
|
clutter_paint_node_add_rectangle (ClutterPaintNode *node,
|
||||||
const ClutterActorBox *rect)
|
const ClutterActorBox *rect)
|
||||||
{
|
{
|
||||||
ClutterPaintOperation operation;
|
ClutterPaintOperation operation = PAINT_OP_INIT;
|
||||||
|
|
||||||
g_return_if_fail (CLUTTER_IS_PAINT_NODE (node));
|
g_return_if_fail (CLUTTER_IS_PAINT_NODE (node));
|
||||||
g_return_if_fail (rect != NULL);
|
g_return_if_fail (rect != NULL);
|
||||||
@ -878,7 +878,7 @@ clutter_paint_node_add_texture_rectangle (ClutterPaintNode *node,
|
|||||||
float x_2,
|
float x_2,
|
||||||
float y_2)
|
float y_2)
|
||||||
{
|
{
|
||||||
ClutterPaintOperation operation;
|
ClutterPaintOperation operation = PAINT_OP_INIT;
|
||||||
|
|
||||||
g_return_if_fail (CLUTTER_IS_PAINT_NODE (node));
|
g_return_if_fail (CLUTTER_IS_PAINT_NODE (node));
|
||||||
g_return_if_fail (rect != NULL);
|
g_return_if_fail (rect != NULL);
|
||||||
@ -906,7 +906,7 @@ void
|
|||||||
clutter_paint_node_add_path (ClutterPaintNode *node,
|
clutter_paint_node_add_path (ClutterPaintNode *node,
|
||||||
CoglPath *path)
|
CoglPath *path)
|
||||||
{
|
{
|
||||||
ClutterPaintOperation operation;
|
ClutterPaintOperation operation = PAINT_OP_INIT;
|
||||||
|
|
||||||
g_return_if_fail (CLUTTER_IS_PAINT_NODE (node));
|
g_return_if_fail (CLUTTER_IS_PAINT_NODE (node));
|
||||||
g_return_if_fail (cogl_is_path (path));
|
g_return_if_fail (cogl_is_path (path));
|
||||||
@ -933,7 +933,7 @@ void
|
|||||||
clutter_paint_node_add_primitive (ClutterPaintNode *node,
|
clutter_paint_node_add_primitive (ClutterPaintNode *node,
|
||||||
CoglPrimitive *primitive)
|
CoglPrimitive *primitive)
|
||||||
{
|
{
|
||||||
ClutterPaintOperation operation;
|
ClutterPaintOperation operation = PAINT_OP_INIT;
|
||||||
|
|
||||||
g_return_if_fail (CLUTTER_IS_PAINT_NODE (node));
|
g_return_if_fail (CLUTTER_IS_PAINT_NODE (node));
|
||||||
g_return_if_fail (cogl_is_primitive (primitive));
|
g_return_if_fail (cogl_is_primitive (primitive));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user