X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fshadebobs.c;h=64fa82c9772d7e28b3ba7a87d3f74e4fd00fd6e1;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hp=39040ea377c66067619ea4bdc19932c23226d90a;hpb=f0261d8acab611f3433160e4f07367b870439739;p=xscreensaver diff --git a/hacks/shadebobs.c b/hacks/shadebobs.c index 39040ea3..64fa82c9 100644 --- a/hacks/shadebobs.c +++ b/hacks/shadebobs.c @@ -52,6 +52,9 @@ static const char *shadebobs_defaults [] = { "*cycles: 10", "*ncolors: 64", /* changing this doesn't work particularly well */ "*delay: 10000", +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 }; @@ -296,12 +299,13 @@ static void Initialize( struct state *st ) { XGCValues gcValues; XWindowAttributes XWinAttribs; - int iBitsPerPixel; + /*int iBitsPerPixel;*/ /* Create the Image for drawing */ XGetWindowAttributes( st->dpy, st->window, &XWinAttribs ); - /* Find the preferred bits-per-pixel. (jwz) */ +#if 0 + /* Find the preferred bits-per-pixel. (jwz) */ { int i, pfvc = 0; XPixmapFormatValues *pfv = XListPixmapFormats( st->dpy, &pfvc ); @@ -314,6 +318,7 @@ static void Initialize( struct state *st ) if( pfv ) XFree (pfv); } +#endif /* Create the GC. */ st->gc = XCreateGC( st->dpy, st->window, 0, &gcValues );