X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fxlockmore.h;h=baedf6bad577e9458869f63b1bfdb44f718c9602;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hp=abb24818cc46c95135ef8d5baf799eca565107a1;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/xlockmore.h b/hacks/xlockmore.h index abb24818..baedf6ba 100644 --- a/hacks/xlockmore.h +++ b/hacks/xlockmore.h @@ -1,5 +1,5 @@ /* xlockmore.h --- xscreensaver compatibility layer for xlockmore modules. - * xscreensaver, Copyright (c) 1997-2008 Jamie Zawinski + * xscreensaver, Copyright (c) 1997-2012 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 @@ -29,19 +29,6 @@ ERROR! Sorry, xlockmore.h requires ANSI C (gcc, for example.) #include "screenhackI.h" #include "xlockmoreI.h" -#ifdef USE_GL - -# ifdef HAVE_COCOA -# include -# include -# else /* !HAVE_COCOA -- real Xlib */ -# include -# include -# endif /* !HAVE_COCOA */ - -# define FreeAllGL(dpy) /* */ -#endif /* USE_GL */ - # define ENTRYPOINT static /* Accessor macros for the ModeInfo structure @@ -102,6 +89,8 @@ ERROR! Sorry, xlockmore.h requires ANSI C (gcc, for example.) #define MI_CLEARWINDOW(mi) XClearWindow(MI_DISPLAY(mi), MI_WINDOW(mi)) +#define FreeAllGL(dpy) /* */ + /* Some other utility macros. */ #define SINF(n) ((float)sin((double)(n))) @@ -139,9 +128,11 @@ ERROR! Sorry, xlockmore.h requires ANSI C (gcc, for example.) # define xlockmore_validate_gl_visual 0 # endif /* !USE_GL || HAVE_COCOA */ -# ifndef USE_GL -# define xlockmore_gl_compute_fps 0 -# endif /* !USE_GL */ +# ifdef USE_GL +# define XLOCKMORE_FPS xlockmore_gl_compute_fps +# else +# define XLOCKMORE_FPS xlockmore_do_fps +# endif #ifdef WRITABLE_COLORS # undef WRITABLE_COLORS @@ -188,7 +179,8 @@ ERROR! Sorry, xlockmore.h requires ANSI C (gcc, for example.) refresh_ ## PREFIX, \ release_ ## PREFIX, \ PREFIX ## _handle_event, \ - & PREFIX ## _opts \ + & PREFIX ## _opts, \ + 0 \ }; \ \ struct xscreensaver_function_table \ @@ -197,7 +189,7 @@ ERROR! Sorry, xlockmore.h requires ANSI C (gcc, for example.) xlockmore_setup, \ & NAME ## _xlockmore_function_table, \ 0, 0, 0, 0, 0, \ - xlockmore_gl_compute_fps, \ + XLOCKMORE_FPS, \ xlockmore_pick_gl_visual, \ xlockmore_validate_gl_visual }; \ \