summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordpw <empty>1995-07-07 20:02:59 +0000
committerdpw <empty>1995-07-07 20:02:59 +0000
commit876fa517db708513584108c2f675d8c563963653 (patch)
treeba86c363bc7699eb4b1cd16ff0f85ccbafbaa87a
parent5f2794234a4498a8e14e307fcd89d45aeef4361d (diff)
XC mods
-rw-r--r--xc/unsupported/programs/dbedizzy/dbedizzy.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/xc/unsupported/programs/dbedizzy/dbedizzy.c b/xc/unsupported/programs/dbedizzy/dbedizzy.c
index b3e2c2354..eb4724194 100644
--- a/xc/unsupported/programs/dbedizzy/dbedizzy.c
+++ b/xc/unsupported/programs/dbedizzy/dbedizzy.c
@@ -36,8 +36,6 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/extensions/Xdbe.h>
-#include <X11/extensions/Xdbeproto.h>
-
#include <stdio.h>
#include <string.h>
#include <math.h>
@@ -124,6 +122,10 @@ getColor( Colormap cmap, char *color_name)
#define RATIO2 0.7
#define RATIO3 0.95
+#ifndef M_PI
+#define M_PI 3.1415927
+#endif
+
#define ANGLE (M_PI*2/spokes)
void
@@ -296,9 +298,9 @@ main(int argc, char *argv[])
fprintf(stderr, "%s: Missing argument to -class\n", ProgName);
exit(1);
}
- if (strcasecmp(arg, "True") == 0)
+ if (strcmp(arg, "True") == 0)
class = TrueColor;
- else if (strcasecmp(arg, "Pseudo") == 0)
+ else if (strcmp(arg, "Pseudo") == 0)
class = PseudoColor;
else {
fprintf(stderr, "%s: Wrong argument %s for -class\n",