X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fblinkbox.c;h=ba4693815f6d474d64d0eb54881267fae92eb4ac;hb=refs%2Fheads%2Fmaster2;hp=8721a81abe6506d0056bab8a7a2a1df0b4487966;hpb=50be9bb40dc60130c99ffa568e6677779904ff70;p=xscreensaver diff --git a/hacks/glx/blinkbox.c b/hacks/glx/blinkbox.c index 8721a81a..ba469381 100644 --- a/hacks/glx/blinkbox.c +++ b/hacks/glx/blinkbox.c @@ -14,6 +14,7 @@ #define DEFAULTS "*delay: 30000 \n" \ "*wireframe: False \n" \ + "*suppressRotationAnimation: True\n" \ # define refresh_ball 0 # define release_ball 0 @@ -243,6 +244,13 @@ reshape_ball (ModeInfo *mi, int width, int height) 0.0, 0.0, 0.0, 0.0, 2.0, 10.0); +# ifdef HAVE_MOBILE /* Keep it the same relative size when rotated. */ + { + int o = (int) current_device_rotation(); + if (o != 0 && o != 180 && o != -180) + glScalef (1/h, 1/h, 1/h); + } +# endif } static void @@ -401,7 +409,6 @@ init_ball (ModeInfo *mi) glEnable(GL_COLOR_MATERIAL); glShadeModel(GL_SMOOTH); - glClearColor(0.0f, 0.0f, 0.0f, 0.5f); glClearDepth(1.0f); glEnable(GL_DEPTH_TEST); glDepthFunc(GL_LEQUAL);