[Xbubble-commits] xbubble-sdl/src theme.c,1.3,1.4
Martin Quinson
mquinson at alioth.debian.org
Thu Sep 14 08:22:46 UTC 2006
Update of /cvsroot/xbubble/xbubble-sdl/src
In directory haydn:/tmp/cvs-serv8271
Modified Files:
theme.c
Log Message:
angles must be in degree from rotozoomer, they are in radian in Xbubble
Index: theme.c
===================================================================
RCS file: /cvsroot/xbubble/xbubble-sdl/src/theme.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- theme.c 12 Sep 2006 08:04:08 -0000 1.3
+++ theme.c 14 Sep 2006 08:22:44 -0000 1.4
@@ -98,7 +98,7 @@
theme->canon_a = set_new( NB_ANGLES );
frame = frame_load("canon.png",theme->name,zoom);
for ( i = -CANON_ANGLE_MAX; i <= CANON_ANGLE_MAX; i++ ) {
- frame_t toadd = frame_new_raw(rotozoomSurface(frame->surf, -i*ANGLE_STEP, 1, 1));
+ frame_t toadd = frame_new_raw(rotozoomSurface(frame->surf, -i*ANGLE_STEP*180.0/3.14159, 1, 1));
if (!toadd)
fail("Canon animation creation failed for frame %d (of %d)",i,CANON_ANGLE_MAX);
set_add( theme->canon_a, toadd);
More information about the Xbubble-commits
mailing list