X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fblitspin.c;h=1c5272537718321a6dc68c84d9206c324ef7ec12;hb=af290bcdf2d1c61efc8aaaff653745c900cbe98c;hp=e8ee26537f3b84f687e30bd8a6ee271df32dce2e;hpb=5b7bc6e70fb439cf4c4bf771ae9f94077fe4fe08;p=xscreensaver diff --git a/hacks/blitspin.c b/hacks/blitspin.c index e8ee2653..1c527253 100644 --- a/hacks/blitspin.c +++ b/hacks/blitspin.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992-1997 Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-1997 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 @@ -42,7 +42,7 @@ # endif /* VMS */ #endif -#include "default.xbm" +#include "images/som.xbm" static Display *dpy; static Window window; @@ -249,9 +249,9 @@ init (void) if (!strcmp (bitmap_name, "(default)")) { - width = logo_width; - height = logo_height; - bitmap = XCreatePixmapFromBitmapData (dpy, window, (char *) logo_bits, + width = som_width; + height = som_height; + bitmap = XCreatePixmapFromBitmapData (dpy, window, (char *) som_bits, width, height, fg, bg, depth); scale_up = True; /* definitely. */ } @@ -299,6 +299,7 @@ init (void) display (self); XSync(dpy, False); + screenhack_handle_events (dpy); } static void @@ -326,15 +327,16 @@ display (Pixmap pixmap) ((xgwa.width-size)>>1)-1, ((xgwa.height-size)>>1)-1, size+2, size+2); */ - XSync (dpy, True); + XSync (dpy, False); + screenhack_handle_events (dpy); } char *progclass = "BlitSpin"; char *defaults [] = { - "BlitSpin.background: black", /* to placate SGI */ - "BlitSpin.foreground: white", + ".background: black", + ".foreground: white", "*delay: 500000", "*delay2: 500000", "*bitmap: (default)", @@ -360,6 +362,7 @@ screenhack (Display *d, Window w) while (1) { rotate (); + screenhack_handle_events (d); if (delay2) usleep (delay2); } }