/*
- * screenflip - takes snapshots of the screen and flips it around
+ * flipscreen3d - takes snapshots of the screen and flips it around
*
* version 1.0 - Oct 24, 2001
*
#ifdef STANDALONE
-# define PROGCLASS "Screenflip"
+# define PROGCLASS "FlipScreen3D"
# define HACK_INIT init_screenflip
# define HACK_DRAW draw_screenflip
# define HACK_RESHAPE reshape_screenflip
static XrmOptionDescRec opts[] = {
- {"+rotate", ".screenflip.rotate", XrmoptionNoArg, (caddr_t) "false" },
- {"-rotate", ".screenflip.rotate", XrmoptionNoArg, (caddr_t) "true" },
+ {"+rotate", ".screenflip.rotate", XrmoptionNoArg, "false" },
+ {"-rotate", ".screenflip.rotate", XrmoptionNoArg, "true" },
};
static argtype vars[] = {
- {(caddr_t *) &rotate, "rotate", "Rotate", "True", t_Bool},
+ {&rotate, "rotate", "Rotate", "True", t_Bool},
};
if (MI_IS_WIREFRAME(modeinfo))
return;
- ximage = screen_to_ximage (modeinfo->xgwa.screen, modeinfo->window);
+ ximage = screen_to_ximage (modeinfo->xgwa.screen, modeinfo->window, NULL);
qw = QW; qh = QH;
tw = modeinfo->xgwa.width;
if (status)
{
- const char *s = gluErrorString (status);
+ const char *s = (char *) gluErrorString (status);
fprintf (stderr, "%s: error mipmapping %dx%d texture: %s\n",
progname, ximage->width, ximage->height,
(s ? s : "(unknown)"));