summaryrefslogtreecommitdiffstats
path: root/hacks/glx/glcells.c
diff options
context:
space:
mode:
authorSimon Rettberg2021-04-06 14:43:39 +0200
committerSimon Rettberg2021-04-07 13:38:37 +0200
commit38886de0c3e9ea5729ef23e4c653fa2822f52e8f (patch)
tree9b799c8c968a92cc77746a95e0e8bdd90b6b13c3 /hacks/glx/glcells.c
parentMaybe not remove, but ... (diff)
downloadxscreensaver-openslx.tar.gz
xscreensaver-openslx.tar.xz
xscreensaver-openslx.zip
xscreensaver 6.00v28r1openslx
Diffstat (limited to 'hacks/glx/glcells.c')
-rw-r--r--hacks/glx/glcells.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/hacks/glx/glcells.c b/hacks/glx/glcells.c
index b8ee5b8..e46aeed 100644
--- a/hacks/glx/glcells.c
+++ b/hacks/glx/glcells.c
@@ -56,9 +56,6 @@
"*wireframe: False \n" \
"*suppressRotationAnimation: True\n" \
-#undef countof
-#define countof(x) (sizeof((x))/sizeof((*x)))
-
#ifndef HAVE_JWZGLES /* glDrawElements unimplemented... */
# define USE_VERTEX_ARRAY
#endif
@@ -1224,9 +1221,7 @@ ENTRYPOINT void
reshape_glcells( ModeInfo *mi, int width, int height )
{
State *st = &sstate[MI_SCREEN(mi)];
-# ifdef HAVE_MOBILE
int rot = current_device_rotation();
-# endif
st->height = height;
st->width = width;
# ifdef HAVE_MOBILE
@@ -1250,9 +1245,7 @@ reshape_glcells( ModeInfo *mi, int width, int height )
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho( 0, width, height, 0, 200, 0 );
-# ifdef HAVE_MOBILE
glRotatef (rot, 0, 0, 1);
-# endif
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
if (st->food) free( st->food );