X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Ftopblock.c;h=6523102a65243d270c62f9f828f8a83b84f7fe1f;hp=008882d3642c0b822cfbbcf9a7850163425f393d;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hpb=c70f94f648d51bb4828193124f325fa52b0e57f3 diff --git a/hacks/glx/topblock.c b/hacks/glx/topblock.c index 008882d3..6523102a 100644 --- a/hacks/glx/topblock.c +++ b/hacks/glx/topblock.c @@ -72,22 +72,22 @@ typedef struct } topBlockSTATE; /* parameter vars */ -Bool override; -Bool rotate; -Bool follow; -Bool drawCarpet; -Bool drawBlob; -Bool drawNipples; -GLfloat rotateSpeed; -GLfloat camX; -GLfloat camY; -GLfloat camZ; -GLfloat dropSpeed; -int maxFalling; -int maxColors; -int size; -int spawn; -int resolution; +static Bool override; +static Bool rotate; +static Bool follow; +static Bool drawCarpet; +static Bool drawBlob; +static Bool drawNipples; +static GLfloat rotateSpeed; +static GLfloat camX; +static GLfloat camY; +static GLfloat camZ; +static GLfloat dropSpeed; +static int maxFalling; +static int maxColors; +static int size; +static int spawn; +static int resolution; static XrmOptionDescRec opts[] = { { "-size", ".size", XrmoptionSepArg, 0 }, @@ -147,7 +147,7 @@ static argtype vars[] = { static topBlockSTATE *tbs = NULL; -ModeSpecOpt topBlock_opts = {countof(opts), opts, countof(vars), vars, NULL}; +static ModeSpecOpt topBlock_opts = {countof(opts), opts, countof(vars), vars, NULL}; /* Window management, etc */ ENTRYPOINT void @@ -319,13 +319,10 @@ draw_topBlock (ModeInfo *mi) followBlock(mi); } - glScalef (-1, 1, 1); - glTranslatef (0, 0, -10); - glRotatef(-current_device_rotation(), 0, 0, 1); + /* Rotate the scene around a point that's a little higher up. */ + glTranslatef (0, 0, -5); gltrackball_rotate (tb->trackball); - glRotatef(current_device_rotation(), 0, 0, 1); - glTranslatef (0, 0, 10); - glScalef (-1, 1, 1); + glTranslatef (0, 0, 5); /* rotate the world */ glRotatef(tb->rotation, 0.0, 0.0, 1.0);