X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fsproingies.c;h=11bbcf5f1a4e9b7721dba31738106c31009f1b16;hb=d5186197bc394e10a4402f7f6d23fbb14103bc50;hp=0892eff873da2e11d8bf81fdf34ada83201767ac;hpb=f8cf5ac7b2f53510f80a0eaf286a25298be17bfe;p=xscreensaver diff --git a/hacks/glx/sproingies.c b/hacks/glx/sproingies.c index 0892eff8..11bbcf5f 100644 --- a/hacks/glx/sproingies.c +++ b/hacks/glx/sproingies.c @@ -36,7 +36,7 @@ static const char sccsid[] = "@(#)sproingies.c 4.04 97/07/28 xlockmore"; #ifdef USE_GL -#ifndef HAVE_COCOA +#if !defined(HAVE_COCOA) && !defined(HAVE_ANDROID) # include #endif @@ -551,7 +551,11 @@ RenderSproingie(int t, sp_instance * si) glTranslatef((GLfloat) (thisSproingie->x) + 0.5, (GLfloat) (thisSproingie->y) + 0.5, (GLfloat) (thisSproingie->z) - 0.5); - scale = (GLfloat) (1 << (thisSproingie->frame - BOOM_FRAME)); + { + int boom_scale = thisSproingie->frame - BOOM_FRAME; + if (boom_scale >= 31) boom_scale = 31; + scale = (GLfloat) (1 << boom_scale); + } glScalef(scale, scale, scale); if (!si->wireframe) { if (!si->mono)