summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2005-11-20 23:14:43 (GMT)
committer John Mark Bell <jmb@netsurf-browser.org>2005-11-20 23:14:43 (GMT)
commit6cad5b08da9bfe1a8bc0a2afc1a0c543eae558ed (patch)
treee8aa95d0611a7f14d9bcbdf1566d702e205423f9
parentdfce56be0d92c9859cb6ee5462dc7ce695311d8d (diff)
downloadlibpencil-6cad5b08da9bfe1a8bc0a2afc1a0c543eae558ed.tar.gz
libpencil-6cad5b08da9bfe1a8bc0a2afc1a0c543eae558ed.tar.bz2
[project @ 2005-11-20 23:14:43 by jmb]
Fix pencil_colour comment. Fix root group name being filled with ofla svn path=/import/pencil/; revision=2476
-rw-r--r--pencil.h2
-rw-r--r--pencil_build.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/pencil.h b/pencil.h
index 0b6e108..315f282 100644
--- a/pencil.h
+++ b/pencil.h
@@ -25,7 +25,7 @@ typedef enum {
pencil_IO_EOF = rufl_IO_EOF,
} pencil_code;
-/** A colour as 0xRRGGBB. */
+/** A colour as 0xBBGGRR00. */
typedef uint32_t pencil_colour;
#define pencil_TRANSPARENT 0xffffffff
diff --git a/pencil_build.c b/pencil_build.c
index d550f95..7e90123 100644
--- a/pencil_build.c
+++ b/pencil_build.c
@@ -33,6 +33,13 @@ struct pencil_diagram *pencil_create(void)
return 0;
}
+ root_group->group_name = strdup("root group");
+ if (!root_group->group_name) {
+ free(root_group);
+ free(diagram);
+ return 0;
+ }
+
diagram->root = root_group;
diagram->current_group = root_group;