X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2FxlockmoreI.h;h=1d54b7814f65f6c5563c63672836347decfbd476;hb=refs%2Fremotes%2Fgithub%2Fmaster2;hp=75909784974fefa3e7bdf3cebce4839f4443b651;hpb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;p=xscreensaver diff --git a/hacks/xlockmoreI.h b/hacks/xlockmoreI.h index 75909784..1d54b781 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-2012 Jamie Zawinski + * xscreensaver, Copyright (c) 1997-2014 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 @@ -45,6 +45,8 @@ typedef struct ModeInfo ModeInfo; # include # include # endif +# elif defined(HAVE_ANDROID) +# include # else # include # include @@ -78,13 +80,7 @@ extern void xlockmore_setup (struct xscreensaver_function_table *, void *); extern void xlockmore_do_fps (Display *, Window, fps_state *, void *); -/* Compatibility with the xlockmore RNG API - (note that the xlockmore hacks never expect negative numbers.) - */ -#define LRAND() ((long) (random() & 0x7fffffff)) -#define NRAND(n) ((int) (LRAND() % (n))) -#define MAXRAND (2147483648.0) /* unsigned 1<<31 as a float */ -#define SRAND(n) /* already seeded by screenhack.c */ +/* The xlockmore RNG API is implemented in utils/yarandom.h. */ struct ModeInfo { @@ -166,7 +162,7 @@ struct xlockmore_function_table { Bool (*hack_handle_events) (ModeInfo *, XEvent *); ModeSpecOpt *opts; - unsigned screen_count; /* Only used on the OS X and iOS ports. */ + unsigned int screen_count; /* Only used on the OS X and iOS ports. */ }; #endif /* __XLOCKMORE_INTERNAL_H__ */