X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fhypnowheel.c;h=d92e147b0baf539c09a5b6d5b6ee9345e7ccc2c9;hp=508229016decf6a94b2f80e09c54db7304f4647a;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hpb=88cfe534a698a0562e81345957a50714af1453bc diff --git a/hacks/glx/hypnowheel.c b/hacks/glx/hypnowheel.c index 50822901..d92e147b 100644 --- a/hacks/glx/hypnowheel.c +++ b/hacks/glx/hypnowheel.c @@ -22,6 +22,7 @@ "*showFPS: False \n" \ "*fpsSolid: True \n" \ "*wireframe: False \n" \ + "*suppressRotationAnimation: True\n" \ # define refresh_hypnowheel 0 # define release_hypnowheel 0 @@ -149,6 +150,14 @@ reshape_hypnowheel (ModeInfo *mi, int width, int height) 0.0, 0.0, 0.0, 0.0, 1.0, 0.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 + glClear(GL_COLOR_BUFFER_BIT); }