X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fxlockmore.h;h=3b390f039a16783bae5754b60c226538434865f3;hb=13dbc569cdc6e29019722c0ef9b932a925efbcad;hp=1b19041dcc30a65c77ed3721fd59e19128864fb5;hpb=3d9140a05b5272fed0883a0af0a71e30ef44d47f;p=xscreensaver diff --git a/hacks/xlockmore.h b/hacks/xlockmore.h index 1b19041d..3b390f03 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, 1998, 2001 Jamie Zawinski + * xscreensaver, Copyright (c) 1997-2002 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 @@ -77,10 +77,11 @@ ERROR! Sorry, xlockmore.h requires ANSI C (gcc, for example.) #define MI_BATCHCOUNT(MI) ((MI)->batchcount) #define MI_SIZE(MI) ((MI)->size) #define MI_IS_DRAWN(MI) ((MI)->is_drawn) -#define MI_IS_DRAWN(MI) ((MI)->is_drawn) +#define MI_IS_FPS(MI) ((MI)->fps_p) #define MI_NCOLORS(MI) ((MI)->npixels) #define MI_NAME(MI) (progname) +#define MI_COLORMAP(MI) (MI_WIN_COLORMAP((MI))) #define MI_WIDTH(MI) (MI_WIN_WIDTH((MI))) #define MI_HEIGHT(MI) (MI_WIN_HEIGHT((MI))) #define MI_IS_ICONIC(MI) (MI_WIN_IS_ICONIC((MI))) @@ -135,6 +136,12 @@ extern void HACK_DRAW(ModeInfo *); # define HACK_RESHAPE 0 #endif +#ifdef HACK_HANDLE_EVENT + extern Bool HACK_HANDLE_EVENT(ModeInfo *, XEvent *e); +#else +# define HACK_HANDLE_EVENT 0 +#endif + /* Emit code for the entrypoint used by screenhack.c, and pass control down into xlockmore.c with the appropriate parameters. @@ -170,9 +177,16 @@ void screenhack (Display *dpy, Window window) False, #endif +#ifdef EVENT_MASK + EVENT_MASK, +#else + 0, +#endif + HACK_INIT, HACK_DRAW, HACK_RESHAPE, + HACK_HANDLE_EVENT, HACK_FREE); }