X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fboing.c;h=979907210a19beacc86b0ad42d38e4c578ba1326;hp=21b1958054bdaf10f9b7561488e4b55ceb877e9c;hb=f8cf5ac7b2f53510f80a0eaf286a25298be17bfe;hpb=ec8d2b32b63649e6d32bdfb306eda062769af823 diff --git a/hacks/glx/boing.c b/hacks/glx/boing.c index 21b19580..97990721 100644 --- a/hacks/glx/boing.c +++ b/hacks/glx/boing.c @@ -378,7 +378,7 @@ draw_scanlines (ModeInfo *mi) int lh, ls; int y; glLoadIdentity(); - gluOrtho2D (0, w, 0, h); + glOrtho (0, w, 0, h, -1, 1); if (h > 500) lh = 4, ls = 4; else if (h > 300) lh = 2, ls = 1; @@ -630,6 +630,7 @@ draw_boing (ModeInfo *mi) glPushMatrix (); gltrackball_rotate (bp->trackball); + glRotatef(current_device_rotation(), 0, 0, 1); glLightfv (GL_LIGHT0, GL_POSITION, bp->lightpos);