X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2FxlockmoreI.h;h=2813c754a7c8b79587b157cae39a06ffcaf5c976;hb=06e9a7886a77cad92f9ddbc169d6d199a4d8b76d;hp=20df035263c98a9df50674482e34412ad1c82427;hpb=f3e0240915ed9f9b3a61781f5c7002d587563fe0;p=xscreensaver diff --git a/hacks/xlockmoreI.h b/hacks/xlockmoreI.h index 20df0352..2813c754 100644 --- a/hacks/xlockmoreI.h +++ b/hacks/xlockmoreI.h @@ -1,5 +1,5 @@ /* xlockmore.h --- xscreensaver compatibility layer for xlockmore modules. - * xscreensaver, Copyright (c) 1997 Jamie Zawinski + * xscreensaver, Copyright (c) 1997, 1998 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -17,6 +17,24 @@ #include "screenhack.h" +#ifdef HAVE_XSHM_EXTENSION +# include "xshm.h" +#endif /* HAVE_XSHM_EXTENSION */ + + +/* I'm told that the Sun version of OpenGL needs to have the constant + SUN_OGL_NO_VERTEX_MACROS defined in order for morph3d to compile + (the number of arguments to the glNormal3f macro changes...) + Verified with gcc 2.7.2.2 and Sun cc 4.2 with OpenGL 1.1.1 dev 4 + on Solaris 2.5.1. + */ +#ifndef HAVE_MESA_GL +# if defined(__sun) && defined(__SVR4) /* Solaris */ +# define SUN_OGL_NO_VERTEX_MACROS 1 +# endif /* Solaris */ +#endif /* !HAVE_MESA_GL */ + + /* Compatibility with the xlockmore RNG API (note that the xlockmore hacks never expect negative numbers.) */ @@ -50,6 +68,13 @@ typedef struct ModeInfo { long threed_none_color; long threed_delta; Bool wireframe_p; + Bool is_drawn; + +#ifdef HAVE_XSHM_EXTENSION + Bool use_shm; + XShmSegmentInfo shm_info; +#endif + } ModeInfo; typedef enum { t_String, t_Float, t_Int, t_Bool } xlockmore_type; @@ -84,8 +109,4 @@ extern void xlockmore_screenhack (Display *dpy, Window window, void (*hack_draw) (ModeInfo *), void (*hack_free) (ModeInfo *)); -#ifdef USE_GL -extern Visual *get_gl_visual (Screen *screen, char *name, char *class); -#endif - #endif /* __XLOCKMORE_INTERNAL_H__ */