X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=hacks%2Fqix.c;h=6e3e9aebe987ef5b747da1c8e2c62b4d0c285d5d;hb=d1ae2829ff0fd2a96c16a0c8c5420efaa47d7b30;hp=c25d21e18a0970bcffc0e484cdeb39eace2d7741;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/qix.c b/hacks/qix.c index c25d21e1..6e3e9aeb 100644 --- a/hacks/qix.c +++ b/hacks/qix.c @@ -1,5 +1,4 @@ -/* xscreensaver, Copyright (c) 1992, 1995, 1996, 1997, 1998, 2006 - * Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-2008 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 @@ -476,7 +475,7 @@ add_qline (struct state *st, { /* give a non-opaque alpha to the color */ unsigned long pixel = qline->color.pixel; - unsigned long amask = BlackPixelOfScreen (0); + unsigned long amask = BlackPixel (st->dpy, 0); unsigned long a = (0xBBBBBBBB & amask); pixel = (pixel & (~amask)) | a; qline->color.pixel = pixel; @@ -579,27 +578,23 @@ qix_free (Display *dpy, Window window, void *closure) static const char *qix_defaults [] = { ".background: black", ".foreground: white", -#if 0 - "*count: 1", -#else - "*count: 5", -#endif - "*segments: 50", + "*fpsSolid: true", + "*count: 4", + "*segments: 250", "*poly: 2", "*spread: 8", - "*size: 0", + "*size: 200", "*colorShift: 3", - "*solid: false", + "*solid: true", "*delay: 10000", - "*random: true", + "*random: false", "*xor: false", -#if 0 - "*transparent:false", -#else "*transparent:true", -#endif "*gravity: false", "*additive: true", +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 };