X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Frotzoomer.c;h=e4cd8536c85cf3b4c740c6992961917acb62303a;hp=3ccb4668eb456cb88335d8f67630b26217fc8293;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hpb=88cfe534a698a0562e81345957a50714af1453bc diff --git a/hacks/rotzoomer.c b/hacks/rotzoomer.c index 3ccb4668..e4cd8536 100644 --- a/hacks/rotzoomer.c +++ b/hacks/rotzoomer.c @@ -97,9 +97,6 @@ rotzoom (struct state *st, struct zoom_area *za) int dy = y - cy; int d2 = (dx*dx) + (dy*dy); - ox = x; - oy = y; - if (d2 > w2) { ox = x; oy = y; @@ -269,7 +266,7 @@ create_zoom (struct state *st) { struct zoom_area *za; - za = malloc (sizeof (struct zoom_area)); + za = calloc (1, sizeof (struct zoom_area)); reset_zoom (st, za); return za; @@ -533,7 +530,7 @@ static const char *rotzoomer_defaults[] = { "*numboxes: 2", "*delay: 10000", "*duration: 120", -#ifdef USE_IPHONE +#ifdef HAVE_MOBILE "*ignoreRotation: True", "*rotateImages: True", #endif