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.35.tar.gz
[xscreensaver]
/
hacks
/
glx
/
splitflap.c
diff --git
a/hacks/glx/splitflap.c
b/hacks/glx/splitflap.c
index 8a0df74cc97921694add922e0265ea216a1e67d9..922417545697afe9ac44d11c485523f20aa8fde3 100644
(file)
--- a/
hacks/glx/splitflap.c
+++ b/
hacks/glx/splitflap.c
@@
-213,6
+213,14
@@
reshape_splitflap (ModeInfo *mi, int width, int height)
0, 0, 0,
0, 1, 0);
0, 0, 0,
0, 1, 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 (h, h, h);
+ }
+# endif
+
glClear(GL_COLOR_BUFFER_BIT);
}
glClear(GL_COLOR_BUFFER_BIT);
}
@@
-1362,7
+1370,7
@@
draw_splitflap (ModeInfo *mi)
? grid_width * r
: grid_height);
GLfloat s = 8;
? grid_width * r
: grid_height);
GLfloat s = 8;
-# ifdef
USE_IPHON
E
+# ifdef
HAVE_MOBIL
E
s *= 2; /* #### What. Why is this necessary? */
#endif
s /= cells;
s *= 2; /* #### What. Why is this necessary? */
#endif
s /= cells;