X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2FscreenhackI.h;h=f25e7ab5406f03852aca1ecae0664f5f2601641d;hb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;hp=5cb59c0ae66b86fe78b87ed8d8948aa0e71fd868;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/screenhackI.h b/hacks/screenhackI.h index 5cb59c0a..f25e7ab5 100644 --- a/hacks/screenhackI.h +++ b/hacks/screenhackI.h @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992-2006 Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-2008 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 @@ -85,6 +85,11 @@ # define M_PI_2 1.5707963267 #endif +#ifndef Button6 +# define Button6 6 +# define Button7 7 +#endif + #include "yarandom.h" #include "usleep.h" #include "resources.h" @@ -92,6 +97,7 @@ #include "colors.h" #include "grabscreen.h" #include "visual.h" +#include "fps.h" /* Be Posixly correct */ #undef bzero @@ -120,6 +126,7 @@ struct xscreensaver_function_table { unsigned int w, unsigned int h); Bool (*event_cb) (Display *, Window, void *, XEvent *); void (*free_cb) (Display *, Window, void *); + void (*fps_cb) (Display *, Window, fps_state *, void *); Visual * (*pick_visual_hook) (Screen *); Bool (*validate_visual_hook) (Screen *, const char *, Visual *);