projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.16.tar.gz
[xscreensaver]
/
hacks
/
glx
/
boing.c
diff --git
a/hacks/glx/boing.c
b/hacks/glx/boing.c
index 21b1958054bdaf10f9b7561488e4b55ceb877e9c..979907210a19beacc86b0ad42d38e4c578ba1326 100644
(file)
--- a/
hacks/glx/boing.c
+++ b/
hacks/glx/boing.c
@@
-378,7
+378,7
@@
draw_scanlines (ModeInfo *mi)
int lh, ls;
int y;
glLoadIdentity();
int lh, ls;
int y;
glLoadIdentity();
- gl
uOrtho2D (0, w, 0, h
);
+ gl
Ortho (0, w, 0, h, -1, 1
);
if (h > 500) lh = 4, ls = 4;
else if (h > 300) lh = 2, ls = 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);
glPushMatrix ();
gltrackball_rotate (bp->trackball);
+ glRotatef(current_device_rotation(), 0, 0, 1);
glLightfv (GL_LIGHT0, GL_POSITION, bp->lightpos);
glLightfv (GL_LIGHT0, GL_POSITION, bp->lightpos);