X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fhypertorus.c;h=4b81aef9ddb7f9e5e853c6f4be8e3730d6488bab;hp=b4cc8afb24860239bf1e9f5ce28dd57a2b1ce561;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hpb=88cfe534a698a0562e81345957a50714af1453bc diff --git a/hacks/glx/hypertorus.c b/hacks/glx/hypertorus.c index b4cc8afb..4b81aef9 100644 --- a/hacks/glx/hypertorus.c +++ b/hacks/glx/hypertorus.c @@ -87,6 +87,7 @@ static const char sccsid[] = "@(#)hypertorus.c 1.2 05/09/28 xlockmore"; #ifdef STANDALONE # define DEFAULTS "*delay: 25000 \n" \ "*showFPS: False \n" \ + "*suppressRotationAnimation: True\n" \ # define refresh_hypertorus 0 # include "xlockmore.h" /* from the xscreensaver distribution */ @@ -95,9 +96,6 @@ static const char sccsid[] = "@(#)hypertorus.c 1.2 05/09/28 xlockmore"; #endif /* !STANDALONE */ #ifdef USE_GL -#ifndef HAVE_COCOA -# include -#endif #include "gltrackball.h" @@ -505,6 +503,17 @@ static int hypertorus(ModeInfo *mi, double umin, double umax, double vmin, } } +#if 0 /* #### not working */ +# ifdef HAVE_MOBILE /* Keep it the same relative size when rotated. */ + { + GLfloat h = MI_HEIGHT(mi) / (GLfloat) MI_WIDTH(mi); + int o = (int) current_device_rotation(); + if (o != 0 && o != 180 && o != -180) + glScalef (1/h, 1/h, 1/h); + } +# endif +#endif + skew = num_spirals; ur = umax-umin; vr = vmax-vmin;