X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fmoebius.c;h=b7b83f202b0c1ace001c87583ff522178acbde30;hb=ff35d056d723c9a5ffe728dbba5f1c25e141be04;hp=a9dddf50c026f86de8487cddc9a4a0a88745cc8c;hpb=f8cf5ac7b2f53510f80a0eaf286a25298be17bfe;p=xscreensaver diff --git a/hacks/glx/moebius.c b/hacks/glx/moebius.c index a9dddf50..b7b83f20 100644 --- a/hacks/glx/moebius.c +++ b/hacks/glx/moebius.c @@ -440,8 +440,8 @@ draw_moebius_strip(ModeInfo * mi) float Cx, Cy, Cz; -#ifdef HAVE_JWZGLES - solidmoebius = True; /* no LINE PolygonMode */ +#ifdef HAVE_JWZGLES /* #### glPolygonMode other than GL_FILL unimplemented */ + solidmoebius = True; #endif if (solidmoebius) { @@ -761,7 +761,10 @@ draw_moebius (ModeInfo * mi) glTranslatef(0.0, 0.0, -10.0); + /* Do it twice because we don't track the device's orientation. */ + glRotatef( current_device_rotation(), 0, 0, 1); gltrackball_rotate (mp->trackball); + glRotatef(-current_device_rotation(), 0, 0, 1); if (!MI_IS_ICONIC(mi)) { glScalef(Scale4Window * mp->WindH / mp->WindW, Scale4Window, Scale4Window);