X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fgalaxy.c;h=2aeeb6f30f0cc11640d7088d1eb6acb1f83c9af1;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hp=43a0b5bf49500f609d58bbc90393bda0d5b5ae48;hpb=6f5482d73adb0165c0130bb47d852644ab0c4869;p=xscreensaver diff --git a/hacks/galaxy.c b/hacks/galaxy.c index 43a0b5bf..2aeeb6f3 100644 --- a/hacks/galaxy.c +++ b/hacks/galaxy.c @@ -45,9 +45,9 @@ static const char sccsid[] = "@(#)galaxy.c 4.04 97/07/28 xlockmore"; "*cycles: 250 \n" \ "*ncolors: 64 \n" \ "*fpsSolid: true \n" \ + "*ignoreRotation: True \n" \ # define UNIFORM_COLORS -# define galaxy_handle_event 0 # include "xlockmore.h" /* from the xscreensaver distribution */ #else /* !STANDALONE */ # include "xlock.h" /* from the xlockmore distribution */ @@ -465,4 +465,16 @@ refresh_galaxy(ModeInfo * mi) /* Do nothing, it will refresh by itself */ } +ENTRYPOINT Bool +galaxy_handle_event (ModeInfo *mi, XEvent *event) +{ + if (screenhack_event_helper (MI_DISPLAY(mi), MI_WINDOW(mi), event)) + { + reshape_galaxy (mi, MI_WIDTH(mi), MI_HEIGHT(mi)); + return True; + } + return False; +} + + XSCREENSAVER_MODULE ("Galaxy", galaxy)