summaryrefslogtreecommitdiffstats
path: root/hacks/kumppa.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-07-30 16:07:15 +0200
committerSimon Rettberg2019-07-30 16:07:15 +0200
commit813ac136e48f60d4c2b13e808107870dafcc4d52 (patch)
tree396a6c98276f6e9a04216933daebdf3af7b81d46 /hacks/kumppa.c
parentFlush X events before locking if we have an external ungrab command (diff)
parentUpdate to 5.43 (diff)
downloadxscreensaver-813ac136e48f60d4c2b13e808107870dafcc4d52.tar.gz
xscreensaver-813ac136e48f60d4c2b13e808107870dafcc4d52.tar.xz
xscreensaver-813ac136e48f60d4c2b13e808107870dafcc4d52.zip
Merge branch 'master' into openslx (5.43)
Diffstat (limited to 'hacks/kumppa.c')
-rw-r--r--hacks/kumppa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hacks/kumppa.c b/hacks/kumppa.c
index fc5167d..f4cc5bb 100644
--- a/hacks/kumppa.c
+++ b/hacks/kumppa.c
@@ -215,10 +215,10 @@ static Bool make_rots(struct state *st, double xspeed,double yspeed)
st->rotsizeY=(int)(2/yspeed+1);
iy=(double)(st->midy+1)/(double)(st->rotsizeY);
- st->Xrotations=malloc((st->midx+2)*sizeof(unsigned int));
- st->Xrottable=malloc((st->rotsizeX+1)*sizeof(unsigned int));
- st->Yrotations=malloc((st->midy+2)*sizeof(unsigned int));
- st->Yrottable=malloc((st->rotsizeY+1)*sizeof(unsigned int));
+ st->Xrotations=malloc((st->midx+2)*sizeof(int));
+ st->Xrottable=malloc((st->rotsizeX+1)*sizeof(int));
+ st->Yrotations=malloc((st->midy+2)*sizeof(int));
+ st->Yrottable=malloc((st->rotsizeY+1)*sizeof(int));
chks=malloc(((st->midx>st->midy)?st->midx:st->midy)*sizeof(Bool));
if (!st->Xrottable || !st->Yrottable || !st->Xrotations || !st->Yrotations || !chks) return False;