projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.05.tar.gz
[xscreensaver]
/
hacks
/
glx
/
extrusion-joinoffset.c
diff --git
a/hacks/glx/extrusion-joinoffset.c
b/hacks/glx/extrusion-joinoffset.c
index c48bad4a887bd881999760f2257d3aea17bf2449..5b0b332b9d1ea15030abe4c12bfa096d407b7c6d 100644
(file)
--- a/
hacks/glx/extrusion-joinoffset.c
+++ b/
hacks/glx/extrusion-joinoffset.c
@@
-8,7
+8,7
@@
#endif
#include <GL/gl.h>
#endif
#include <GL/gl.h>
-#include <GL/glut.h>
+/*#include <GL/glut.h>*/
#ifdef HAVE_GLE3
#include <GL/gle.h>
#else
#ifdef HAVE_GLE3
#include <GL/gle.h>
#else
@@
-19,8
+19,8
@@
/* the arrays in which we will store the polyline */
#define NPTS 100
/* the arrays in which we will store the polyline */
#define NPTS 100
-double points [NPTS][3];
-float colors [NPTS][3];
+
static
double points [NPTS][3];
+
static
float colors [NPTS][3];
static int idx = 0;
/* some utilities for filling that array */
static int idx = 0;
/* some utilities for filling that array */
@@
-40,8
+40,8
@@
static int idx = 0;
/* the arrays in which we will store the contour */
#define NCONTOUR 100
/* the arrays in which we will store the contour */
#define NCONTOUR 100
-double contour_points [NCONTOUR][2];
-int cidx = 0;
+
static
double contour_points [NCONTOUR][2];
+
static
int cidx = 0;
/* some utilities for filling that array */
#define C_PNT(x,y) { \
/* some utilities for filling that array */
#define C_PNT(x,y) { \
@@
-99,7
+99,7
@@
void InitStuff_joinoffset (void)
gleSetJoinStyle (TUBE_JN_ANGLE | TUBE_CONTOUR_CLOSED | TUBE_JN_CAP);
}
gleSetJoinStyle (TUBE_JN_ANGLE | TUBE_CONTOUR_CLOSED | TUBE_JN_CAP);
}
-double up_vector[3] = {1.0, 0.0, 0.0};
+
static
double up_vector[3] = {1.0, 0.0, 0.0};
extern float lastx;
extern float lasty;
extern float lastx;
extern float lasty;