X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fblitspin.c;h=d00a9e2aa9e8db2a7b204dcb769773da6d6caec0;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hp=1c18881c8fda0b8347fb31fb912dc9cdba287ad8;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/blitspin.c b/hacks/blitspin.c index 1c18881c..d00a9e2a 100644 --- a/hacks/blitspin.c +++ b/hacks/blitspin.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992-2008 Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-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 @@ -296,6 +296,7 @@ blitspin_init (Display *d_arg, Window w_arg) st->bitmap = xpm_file_to_pixmap (st->dpy, st->window, bitmap_name, &st->width, &st->height, 0); st->scale_up = True; /* probably? */ + blitspin_init_2 (st); } return st; @@ -397,6 +398,12 @@ blitspin_reshape (Display *dpy, Window window, void *closure, static Bool blitspin_event (Display *dpy, Window window, void *closure, XEvent *event) { + struct state *st = (struct state *) closure; + if (screenhack_event_helper (dpy, window, event)) + { + st->start_time = 0; + return True; + } return False; } @@ -414,7 +421,10 @@ static const char *blitspin_defaults [] = { "*delay2: 500000", "*duration: 120", "*bitmap: (default)", - "*geometry: 512x512", + "*geometry: 1080x1080", +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 };