X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fjigglypuff.c;h=a0f6b76b25afe24ea608ef16a023b50f70f79537;hb=ff35d056d723c9a5ffe728dbba5f1c25e141be04;hp=67c2c4b19e42c41274512260d8ddda9701ae3b81;hpb=f8cf5ac7b2f53510f80a0eaf286a25298be17bfe;p=xscreensaver diff --git a/hacks/glx/jigglypuff.c b/hacks/glx/jigglypuff.c index 67c2c4b1..a0f6b76b 100644 --- a/hacks/glx/jigglypuff.c +++ b/hacks/glx/jigglypuff.c @@ -872,11 +872,11 @@ static int parse_color(jigglystruct *js) static void randomize_parameters(jigglystruct *js) { do_tetrahedron = random() & 1; -# ifndef HAVE_JWZGLES +# ifndef HAVE_JWZGLES /* #### glPolygonMode other than GL_FILL unimplemented */ js->do_wireframe = !(random() & 3); # endif js->color_style = random() % 5; -# ifdef HAVE_JWZGLES /* SPHERE_MAP unimplemented */ +# ifdef HAVE_JWZGLES /* #### SPHERE_MAP unimplemented */ while (js->color_style == COLOR_STYLE_CHROME) js->color_style = random() % 5;; # endif @@ -990,7 +990,11 @@ ENTRYPOINT void draw_jigglypuff(ModeInfo *mi) js->axis -= 2*M_PI; } } + + /* Do it twice because we don't track the device's orientation. */ + glRotatef( current_device_rotation(), 0, 0, 1); gltrackball_rotate(js->trackball); + glRotatef(-current_device_rotation(), 0, 0, 1); if(js->color_style == COLOR_STYLE_CYCLE) { int i;