]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/gr.c
Update cfg_kludge_flash for Flash 10
[ion3.git] / ioncore / gr.c
index f86479287fd6ef2c84e50ece3ef2384b77657ff8..b1712a1afe83fd47de4c5a7379a8596b24b0aaa7 100644 (file)
@@ -1,12 +1,9 @@
 /*
  * ion/ioncore/gr.c
  *
- * Copyright (c) Tuomo Valkonen 1999-2007
+ * Copyright (c) Tuomo Valkonen 1999-2009
  *
- * Ion is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
+ * See the included file LICENSE for details.
  */
 
 #include <string.h>
@@ -98,7 +95,7 @@ static bool gr_do_select_engine(const char *engine)
 
 
 /*EXTL_DOC
- * Future requests for ''brushes'' are to be forwarded to the drawing engine
+ * Future requests for ``brushes'' are to be forwarded to the drawing engine
  * \var{engine}. If no engine of such name is known, a module with that name
  * is attempted to be loaded. This function is only intended to be called from
  * colour scheme etc. configuration files and can not be used to change the
@@ -299,7 +296,7 @@ void gr_stylespec_init(GrStyleSpec *spec)
 }
 
 
-static bool gr_stylespec_find_(GrStyleSpec *spec, GrAttr a, int *idx_ge)
+static bool gr_stylespec_find_(const GrStyleSpec *spec, GrAttr a, int *idx_ge)
 {
     bool found=FALSE;
     uint i;
@@ -315,6 +312,15 @@ static bool gr_stylespec_find_(GrStyleSpec *spec, GrAttr a, int *idx_ge)
     return found;
 }
 
+
+bool gr_stylespec_isset(const GrStyleSpec *spec, GrAttr a)
+{
+    int idx_ge;
+    
+    return gr_stylespec_find_(spec, a, &idx_ge);
+}
+
+
 bool gr_stylespec_add(GrStyleSpec *spec, GrAttr a, uint score)
 {
     static const uint sz=sizeof(GrAttrScore);
@@ -632,7 +638,7 @@ void grbrush_unset_attr(GrBrush *brush, GrAttr attr)
 
 
 /*EXTL_DOC
- * Read drawing engine configuration file \file{draw.lua}.
+ * Read drawing engine configuration file \file{look.lua}.
  */
 EXTL_EXPORT_AS(gr, read_config)
 void gr_read_config()