X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fextrusion.c;h=32f8e6946d39e0c43921994986b54108ee7d2f6f;hp=07a82dc4bd08513a5f6955cffc4f8ab6f98c82de;hb=ffd8c0873576a9e3065696a624dce6b766b77062;hpb=6a1da724858673ac40aa13a9612340d8bed8c7b9 diff --git a/hacks/glx/extrusion.c b/hacks/glx/extrusion.c index 07a82dc4..32f8e694 100644 --- a/hacks/glx/extrusion.c +++ b/hacks/glx/extrusion.c @@ -22,13 +22,6 @@ * which can be obtained from http://www.linas.org/gle/index.html */ -/*- - * due to a Bug/feature in VMS X11/Intrinsic.h has to be placed before xlock. - * otherwise caddr_t is not defined correctly - */ - -#include - #ifdef HAVE_CONFIG_H #include #endif @@ -124,30 +117,30 @@ static char *which_name; static char *which_image; static XrmOptionDescRec opts[] = { - {"-light", ".extrusion.light", XrmoptionNoArg, (caddr_t) "true" }, - {"+light", ".extrusion.light", XrmoptionNoArg, (caddr_t) "false" }, - {"-wire", ".extrusion.wire", XrmoptionNoArg, (caddr_t) "true" }, - {"+wire", ".extrusion.wire", XrmoptionNoArg, (caddr_t) "false" }, - {"-texture", ".extrusion.texture", XrmoptionNoArg, (caddr_t) "true" }, - {"+texture", ".extrusion.texture", XrmoptionNoArg, (caddr_t) "false" }, - {"-texture", ".extrusion.texture", XrmoptionNoArg, (caddr_t) "true" }, - {"+texture_quality", ".extrusion.texture", XrmoptionNoArg, (caddr_t) "false" }, - {"-texture_quality", ".extrusion.texture", XrmoptionNoArg, (caddr_t) "true" }, - {"+mipmap", ".extrusion.mipmap", XrmoptionNoArg, (caddr_t) "false" }, - {"-mipmap", ".extrusion.mipmap", XrmoptionNoArg, (caddr_t) "true" }, - {"-name", ".extrusion.name", XrmoptionSepArg, (caddr_t) NULL }, - {"-image", ".extrusion.image", XrmoptionSepArg, (caddr_t) NULL }, + {"-light", ".extrusion.light", XrmoptionNoArg, "true" }, + {"+light", ".extrusion.light", XrmoptionNoArg, "false" }, + {"-wire", ".extrusion.wire", XrmoptionNoArg, "true" }, + {"+wire", ".extrusion.wire", XrmoptionNoArg, "false" }, + {"-texture", ".extrusion.texture", XrmoptionNoArg, "true" }, + {"+texture", ".extrusion.texture", XrmoptionNoArg, "false" }, + {"-texture", ".extrusion.texture", XrmoptionNoArg, "true" }, + {"+texture_quality", ".extrusion.texture", XrmoptionNoArg, "false" }, + {"-texture_quality", ".extrusion.texture", XrmoptionNoArg, "true" }, + {"+mipmap", ".extrusion.mipmap", XrmoptionNoArg, "false" }, + {"-mipmap", ".extrusion.mipmap", XrmoptionNoArg, "true" }, + {"-name", ".extrusion.name", XrmoptionSepArg, 0 }, + {"-image", ".extrusion.image", XrmoptionSepArg, 0 }, }; static argtype vars[] = { - {(caddr_t *) &do_light, "light", "Light", DEF_LIGHT, t_Bool}, - {(caddr_t *) &do_wire, "wire", "Wire", DEF_WIRE, t_Bool}, - {(caddr_t *) &do_texture, "texture", "Texture", DEF_TEXTURE, t_Bool}, - {(caddr_t *) &do_texture_quality, "texture_quality", "Texture_Quality", DEF_TEXTURE_QUALITY, t_Bool}, - {(caddr_t *) &do_mipmap, "mipmap", "Mipmap", DEF_MIPMAP, t_Bool}, - {(caddr_t *) &which_name, "name", "Name", DEF_NAME, t_String}, - {(caddr_t *) &which_image, "image", "Image", DEF_IMAGE, t_String}, + {&do_light, "light", "Light", DEF_LIGHT, t_Bool}, + {&do_wire, "wire", "Wire", DEF_WIRE, t_Bool}, + {&do_texture, "texture", "Texture", DEF_TEXTURE, t_Bool}, + {&do_texture_quality, "texture_quality", "Texture_Quality", DEF_TEXTURE_QUALITY, t_Bool}, + {&do_mipmap, "mipmap", "Mipmap", DEF_MIPMAP, t_Bool}, + {&which_name, "name", "Name", DEF_NAME, t_String}, + {&which_image, "image", "Image", DEF_IMAGE, t_String}, }; @@ -455,7 +448,7 @@ initializeGL(ModeInfo *mi, GLsizei width, GLsizei height) glClearColor(0,0,0,0); /* glCullFace(GL_BACK); */ /* glEnable(GL_CULL_FACE); */ - glLightModeli (GL_LIGHT_MODEL_TWO_SIDE, TRUE); + glLightModeli (GL_LIGHT_MODEL_TWO_SIDE, True); glShadeModel(GL_SMOOTH); if (do_light)