]> git.draconx.ca Git - upkg.git/commitdiff
texture: Fix typo in get_property.
authorNick Bowler <nbowler@draconx.ca>
Mon, 21 Mar 2011 13:39:15 +0000 (09:39 -0400)
committerNick Bowler <nbowler@draconx.ca>
Mon, 21 Mar 2011 13:39:15 +0000 (09:39 -0400)
These properties are unsigned ints, not booleans...

src/engine/texture.c

index b072eb1bc2b706de143fef61cde3ba96bf9f9c0a..03646648b1d5bc59f99e8fd070771bb207bd2cf4 100644 (file)
@@ -91,10 +91,10 @@ get_property(GObject *o, guint id, GValue *val, GParamSpec *spec)
 
        switch (id) {
        case PROP_USIZE:
-               g_value_set_boolean(val, t->usize);
+               g_value_set_uint(val, t->usize);
                break;
        case PROP_VSIZE:
-               g_value_set_boolean(val, t->vsize);
+               g_value_set_uint(val, t->vsize);
                break;
        default:
                G_OBJECT_WARN_INVALID_PROPERTY_ID(o, id, spec);