[xiph-commits] r17655 - trunk/squishyball

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Thu Nov 25 10:25:22 PST 2010


Author: xiphmont
Date: 2010-11-25 10:25:22 -0800 (Thu, 25 Nov 2010)
New Revision: 17655

Modified:
   trunk/squishyball/main.c
   trunk/squishyball/mincurses.c
   trunk/squishyball/tty.c
Log:
mincurses buffer fix, alter beeps slightly, add atexit for restoring terminal on error abort


Modified: trunk/squishyball/main.c
===================================================================
--- trunk/squishyball/main.c	2010-11-25 17:03:33 UTC (rev 17654)
+++ trunk/squishyball/main.c	2010-11-25 18:25:22 UTC (rev 17655)
@@ -1617,7 +1617,7 @@
       sinf(f*base*7)*.14f+
       sinf(f*base*9)*.11f;
     w*=w;
-    beep2[i] = w*b*mul;
+    beep2[i] = w*b*mul*2;
   }
 
   /* make sure that the samples are at least fragsamples*2 in length! If they're not, extend... */
@@ -2104,6 +2104,7 @@
   fragsamples=setup_windows(pcm,test_files);
 
   /* set up terminal */
+  atexit(min_remove_panel);
   min_init_panel(5);
 
   /* set up shared state */

Modified: trunk/squishyball/mincurses.c
===================================================================
--- trunk/squishyball/mincurses.c	2010-11-25 17:03:33 UTC (rev 17654)
+++ trunk/squishyball/mincurses.c	2010-11-25 18:25:22 UTC (rev 17655)
@@ -269,6 +269,7 @@
       len-=ret;
     }
   }
+  buf_fill=0;
   return 0;
 }
 

Modified: trunk/squishyball/tty.c
===================================================================
--- trunk/squishyball/tty.c	2010-11-25 17:03:33 UTC (rev 17654)
+++ trunk/squishyball/tty.c	2010-11-25 18:25:22 UTC (rev 17655)
@@ -33,6 +33,7 @@
 #include <errno.h>
 #include "mincurses.h"
 
+#if 0
 void fill(char *buf,char c,int cols){
   int i;
   for(i=0;i<cols;i++)
@@ -76,3 +77,4 @@
     }
   }
 }
+#endif



More information about the commits mailing list