X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fxlockmore.h;h=1b19041dcc30a65c77ed3721fd59e19128864fb5;hb=82c5080773aae5e72ec155327c075775e023d2ee;hp=d39119abd38e40968a13ed1d85d8ce8161e3ea0d;hpb=df7adbee81405e2849728a24b498ad2117784b1f;p=xscreensaver diff --git a/hacks/xlockmore.h b/hacks/xlockmore.h index d39119ab..1b19041d 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 Jamie Zawinski + * xscreensaver, Copyright (c) 1997, 1998, 2001 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 @@ -35,8 +35,11 @@ ERROR! Sorry, xlockmore.h requires ANSI C (gcc, for example.) #ifdef USE_GL # include extern GLXContext *init_GL (ModeInfo *); + extern void clear_gl_error (void); + extern void check_gl_error (const char *type); + extern void do_fps (ModeInfo *); # define FreeAllGL(dpy) /* */ -#endif +#endif /* !USE_GL */ /* Accessor macros for the ModeInfo structure */ @@ -90,6 +93,7 @@ ERROR! Sorry, xlockmore.h requires ANSI C (gcc, for example.) #define MI_IS_VERBOSE(MI) (MI_WIN_IS_VERBOSE(MI)) #define MI_IS_INSTALL(MI) (MI_WIN_IS_INSTALL(MI)) #define MI_IS_DEBUG(MI) (False) +#define MI_IS_MOUSE(MI) (False) #define MI_CLEARWINDOW(mi) XClearWindow(MI_DISPLAY(mi), MI_WINDOW(mi)) @@ -125,6 +129,12 @@ extern void HACK_DRAW(ModeInfo *); # define HACK_FREE 0 #endif +#ifdef HACK_RESHAPE + extern void HACK_RESHAPE(ModeInfo *, int width, int height); +#else +# define HACK_RESHAPE 0 +#endif + /* Emit code for the entrypoint used by screenhack.c, and pass control down into xlockmore.c with the appropriate parameters. @@ -162,6 +172,7 @@ void screenhack (Display *dpy, Window window) HACK_INIT, HACK_DRAW, + HACK_RESHAPE, HACK_FREE); }