]> Pileus Git - grits/blobdiff - src/objects/grits-poly.h
Improve performance of GritsPoly
[grits] / src / objects / grits-poly.h
index 262935301adfb5f3390169dc42335a13d6f57104..ad7cefb5775343ad59e045aca59339b6de428c6b 100644 (file)
@@ -40,7 +40,7 @@ struct _GritsPoly {
        gdouble      color[4];
        gdouble      border[4];
        gdouble      width;
-       guint        list;
+       guint        list[2];
 };
 
 struct _GritsPolyClass {
@@ -51,7 +51,7 @@ GType grits_poly_get_type(void);
 
 GritsPoly *grits_poly_new(gdouble (**points)[3]);
 
-GritsPoly *grits_poly_parse(gchar *str,
-               gchar *poly_sep, gchar *point_sep, gchar *coord_sep);
+GritsPoly *grits_poly_parse(const gchar *str,
+               const gchar *poly_sep, const gchar *point_sep, const gchar *coord_sep);
 
 #endif