X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fflipscreen3d.c;h=4cee56ee262011142accee066014dd53add1e138;hb=bc7b7a8eb122206d239ec0e693676bcce31be1aa;hp=e72d8dce8725f7890ceb739345591ad41d35f17b;hpb=6a1da724858673ac40aa13a9612340d8bed8c7b9;p=xscreensaver diff --git a/hacks/glx/flipscreen3d.c b/hacks/glx/flipscreen3d.c index e72d8dce..4cee56ee 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 @@ -63,13 +63,13 @@ GLfloat qx = -6 , qy = 6; 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}, }; @@ -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;