projects
/
censuslogo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
foo
[censuslogo]
/
src
/
logo.c
diff --git
a/src/logo.c
b/src/logo.c
index
069c4d7
..
c0e0239
100644
(file)
--- a/
src/logo.c
+++ b/
src/logo.c
@@
-5,6
+5,7
@@
#include <ctype.h>
#include "cgmath/cgmath.h"
#include "logo.h"
#include <ctype.h>
#include "cgmath/cgmath.h"
#include "logo.h"
+#include "logodata.h"
struct cpnode {
cgm_vec2 p;
struct cpnode {
cgm_vec2 p;
@@
-20,6
+21,14
@@
struct cpnode {
static cgm_vec2 *cp;
static int numcp;
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;
int init_logo(const char *fname)
{
FILE *fp;
@@
-91,6
+100,7
@@
int init_logo(const char *fname)
return 0;
}
return 0;
}
+#endif /* NOLOAD */
static void eval_seg(float *res, int a, int b, float t)
{
static void eval_seg(float *res, int a, int b, float t)
{