X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fflipscreen3d.c;h=19d57bf495bc965973e25daaa0145adabb359a04;hb=e4fa2ac140f7bc56571373a7b7eb585fa4500e38;hp=14cb2767f0e29d724d8bff1fd1a5b8331d0794f5;hpb=40eacb5812ef7c0e3374fb139afbb4f5bc8bbfb5;p=xscreensaver diff --git a/hacks/glx/flipscreen3d.c b/hacks/glx/flipscreen3d.c index 14cb2767..19d57bf4 100644 --- a/hacks/glx/flipscreen3d.c +++ b/hacks/glx/flipscreen3d.c @@ -1,5 +1,5 @@ /* - * 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 * @@ -18,7 +18,7 @@ #ifdef STANDALONE -# define PROGCLASS "Screenflip" +# define PROGCLASS "FlipScreen3D" # define HACK_INIT init_screenflip # define HACK_DRAW draw_screenflip # define HACK_RESHAPE reshape_screenflip @@ -69,7 +69,7 @@ static XrmOptionDescRec opts[] = { static argtype vars[] = { - {(caddr_t *) &rotate, "rotate", "Rotate", "True", t_Bool}, + {&rotate, "rotate", "Rotate", "True", t_Bool}, }; @@ -405,7 +405,7 @@ void getSnapshot (ModeInfo *modeinfo) 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; @@ -439,7 +439,7 @@ void getSnapshot (ModeInfo *modeinfo) 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)"));