projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.35.tar.gz
[xscreensaver]
/
hacks
/
rotzoomer.c
diff --git
a/hacks/rotzoomer.c
b/hacks/rotzoomer.c
index 3ccb4668eb456cb88335d8f67630b26217fc8293..e4cd8536c85cf3b4c740c6992961917acb62303a 100644
(file)
--- 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);
int dy = y - cy;
int d2 = (dx*dx) + (dy*dy);
- ox = x;
- oy = y;
-
if (d2 > w2) {
ox = x;
oy = y;
if (d2 > w2) {
ox = x;
oy = y;
@@
-269,7
+266,7
@@
create_zoom (struct state *st)
{
struct zoom_area *za;
{
struct zoom_area *za;
- za =
malloc (
sizeof (struct zoom_area));
+ za =
calloc (1,
sizeof (struct zoom_area));
reset_zoom (st, za);
return za;
reset_zoom (st, za);
return za;
@@
-533,7
+530,7
@@
static const char *rotzoomer_defaults[] = {
"*numboxes: 2",
"*delay: 10000",
"*duration: 120",
"*numboxes: 2",
"*delay: 10000",
"*duration: 120",
-#ifdef
USE_IPHON
E
+#ifdef
HAVE_MOBIL
E
"*ignoreRotation: True",
"*rotateImages: True",
#endif
"*ignoreRotation: True",
"*rotateImages: True",
#endif