X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fmetaballs.c;h=b79dd95d94151550f4fd346a4753791a6e410008;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hp=a7a0591d0e32c9109bb896b7857fa0deb6a7c2e1;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/metaballs.c b/hacks/metaballs.c index a7a0591d..b79dd95d 100644 --- a/hacks/metaballs.c +++ b/hacks/metaballs.c @@ -62,7 +62,7 @@ static void init_blob(struct state *st, BLOB *blob) static void Execute( struct state *st ) { - unsigned int i, j, k; + int i, j, k; /* clear st->blub array */ for (i = 0; i < st->iWinHeight; ++i) @@ -200,7 +200,7 @@ static void Initialize( struct state *st ) { XGCValues gcValues; XWindowAttributes XWinAttribs; - int iBitsPerPixel, i, j; + int /*iBitsPerPixel,*/ i, j; unsigned int distance_squared; float fraction; @@ -208,6 +208,7 @@ static void Initialize( struct state *st ) XGetWindowAttributes( st->dpy, st->window, &XWinAttribs ); /* Find the preferred bits-per-pixel. (jwz) */ +#if 0 { int pfvc = 0; XPixmapFormatValues *pfv = XListPixmapFormats( st->dpy, &pfvc ); @@ -220,6 +221,7 @@ static void Initialize( struct state *st ) if( pfv ) XFree (pfv); } +#endif /* Create the GC. */ st->gc = XCreateGC( st->dpy, st->window, 0, &gcValues ); @@ -406,6 +408,9 @@ static const char *metaballs_defaults [] = { "*delay: 10000", "*radius: 100", "*delta: 3", +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 };