projects
/
censuslogo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
capture feature
[censuslogo]
/
src
/
logo.c
diff --git
a/src/logo.c
b/src/logo.c
index
b36473d
..
c0e0239
100644
(file)
--- a/
src/logo.c
+++ b/
src/logo.c
@@
-3,8
+3,9
@@
#include <string.h>
#include <math.h>
#include <ctype.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
-#include <cgmath/cgmath.h>
+#include "cgmath/cgmath.h"
#include "logo.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)
{