diff options
author | Simon Rettberg | 2021-04-06 14:23:46 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-04-06 14:23:46 +0200 |
commit | 26b6e4255d4b9ff79a6dca10de5bec7bfc8691f9 (patch) | |
tree | a51e1637554bcd84e63cccb1cb220c898a2c4ee8 /hacks/glx/moebius.c | |
parent | 5.44 (diff) | |
download | xscreensaver-26b6e4255d4b9ff79a6dca10de5bec7bfc8691f9.tar.gz xscreensaver-26b6e4255d4b9ff79a6dca10de5bec7bfc8691f9.tar.xz xscreensaver-26b6e4255d4b9ff79a6dca10de5bec7bfc8691f9.zip |
xscreensaver 6.00
Diffstat (limited to 'hacks/glx/moebius.c')
-rw-r--r-- | hacks/glx/moebius.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/hacks/glx/moebius.c b/hacks/glx/moebius.c index e3155ac..61d5afb 100644 --- a/hacks/glx/moebius.c +++ b/hacks/glx/moebius.c @@ -89,18 +89,6 @@ static const char sccsid[] = "@(#)moebius.c 5.01 2001/03/01 xlockmore"; # include "xlock.h" /* from the xlockmore distribution */ #endif /* !STANDALONE */ -#ifdef HAVE_JWXYZ -# include "jwxyz.h" -#else -# include <X11/Xlib.h> -# include <GL/gl.h> -# include <GL/glu.h> -#endif - -#ifdef HAVE_JWZGLES -# include "jwzgles.h" -#endif /* HAVE_JWZGLES */ - #ifdef MODE_moebius #if 0 /* Hey, this never actually used the texture at all! */ @@ -741,6 +729,15 @@ draw_moebius (ModeInfo * mi) glScalef (h, h, h); } } +# else + /* Don't understand why this clause doesn't work on mobile, but it + doesn't. */ + { + GLfloat s = (MI_WIDTH(mi) < MI_HEIGHT(mi) + ? (MI_WIDTH(mi) / (GLfloat) MI_HEIGHT(mi)) + : 1); + glScalef (s, s, s); + } # endif { |