summaryrefslogtreecommitdiffstats
path: root/hacks/glx/gltrackball.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/glx/gltrackball.c')
-rw-r--r--hacks/glx/gltrackball.c25
1 files changed, 4 insertions, 21 deletions
diff --git a/hacks/glx/gltrackball.c b/hacks/glx/gltrackball.c
index 9e3314c..7a46f06 100644
--- a/hacks/glx/gltrackball.c
+++ b/hacks/glx/gltrackball.c
@@ -10,29 +10,12 @@
* implied warranty.
*/
+#include "screenhackI.h"
+
#include <math.h>
#include <stdlib.h>
#include <string.h>
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#ifdef HAVE_COCOA
-# include "jwxyz.h"
-#elif defined(HAVE_ANDROID)
-# include "jwxyz.h"
-# include <GLES/gl.h>
-#else /* real X11 */
-# include <X11/X.h>
-# include <X11/Xlib.h>
-# include <GL/gl.h>
-#endif /* !HAVE_COCOA */
-
-#ifdef HAVE_JWZGLES
-# include "jwzgles.h"
-#endif /* HAVE_JWZGLES */
-
# define Button4 4 /* WTF */
# define Button5 5
# define Button6 6
@@ -41,7 +24,7 @@
#include "trackball.h"
#include "gltrackball.h"
-#if defined(USE_IPHONE) || defined(HAVE_ANDROID)
+#if defined(HAVE_IPHONE) || defined(HAVE_ANDROID)
/* Surely this should be defined somewhere more centrally... */
# define HAVE_MOBILE
#endif
@@ -216,7 +199,7 @@ gltrackball_reset (trackball_state *ts, float x, float y)
/* Execute the rotations current encapsulated in the trackball_state:
- this does something analagous to glRotatef().
+ this does something analogous to glRotatef().
*/
void
gltrackball_rotate (trackball_state *ts)