done with the basic effect
[censuslogo] / src / logo.c
index 069c4d7..c0e0239 100644 (file)
@@ -5,6 +5,7 @@
 #include <ctype.h>
 #include "cgmath/cgmath.h"
 #include "logo.h"
+#include "logodata.h"
 
 struct cpnode {
        cgm_vec2 p;
@@ -20,6 +21,14 @@ struct cpnode {
 static cgm_vec2 *cp;
 static int numcp;
 
+#ifdef NOLOAD
+int init_logo(const char *fname)
+{
+       cp = logocp;
+       numcp = LOGO_NUM_CP;
+       return 0;
+}
+#else  /* !def NOLOAD */
 int init_logo(const char *fname)
 {
        FILE *fp;
@@ -91,6 +100,7 @@ int init_logo(const char *fname)
 
        return 0;
 }
+#endif /* NOLOAD */
 
 static void eval_seg(float *res, int a, int b, float t)
 {