accepted patch from: Tim Yamin <plasmaroo@gentoo.org>

origin
stpohle 20 years ago
parent c4dc62d2db
commit 05119fc803

@ -1,4 +1,5 @@
$Id: ChangeLog,v 1.105 2005/08/07 17:58:04 stpohle Exp $
$Id: ChangeLog,v 1.106 2006/02/06 21:17:59 stpohle Exp $
Version 0.11.7 (still in progress)
- Fixed: High CPU usage in menus.
This fix was made by Chris E..

@ -5,7 +5,7 @@ dnl Please disable it in the Anjuta project configuration
AC_INIT(configure.in)
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE(bomberclone, 0.11.6.2)
AM_INIT_AUTOMAKE(bomberclone, 0.11.7)
AM_CONFIG_HEADER(config.h)

@ -1,4 +1,4 @@
/* $Id: bomb.h,v 1.5 2005/04/10 00:22:16 stpohle Exp $
/* $Id: bomb.h,v 1.6 2006/02/06 21:18:01 stpohle Exp $
* bomb include file
*/
@ -37,8 +37,9 @@ struct {
unsigned char state; // state of the bomb BS_*
unsigned char mode; // mode of the bomb BM_*
int ex_nr; // explosion number
_point source; // start of a kicked bomb
_point dest; // destination to move the bomb to
float speed; // bomb moving speed
float speed; // bomb moving speed or kicked bomb 0.0=start 1.0=end
} typedef _bomb;

@ -1,4 +1,4 @@
/* $Id: menu.c,v 1.52 2005/08/07 17:58:05 stpohle Exp $
/* $Id: menu.c,v 1.53 2006/02/06 21:18:01 stpohle Exp $
* Menuhandling */
#include "basic.h"
@ -629,7 +629,7 @@ menu_displaymessage (char *title, char *fmt, ...)
memset (text, 0, sizeof (text));
memset (out, 0, sizeof (out));
va_start (args, fmt);
vsprintf (text, fmt, args);
vsnprintf (text, 512, fmt, args);
va_end (args);
menu_formattext (text, out, lines, &linenr, &maxlinelen, MENU_MESSAGES_MAXLINELEN,
@ -722,7 +722,7 @@ menu_displaytext (char *title, char *fmt, ...)
memset (text, 0, sizeof (text));
memset (out, 0, sizeof (out));
va_start (args, fmt);
vsprintf (text, fmt, args);
vsnprintf (text, 512, fmt, args);
va_end (args);
menu_formattext (text, out, lines, &linenr, &maxlinelen, MENU_MESSAGES_MAXLINELEN,

@ -1,4 +1,4 @@
/* $Id: menulabels.c,v 1.7 2004/09/12 16:49:48 stpohle Exp $
/* $Id: menulabels.c,v 1.8 2006/02/06 21:18:01 stpohle Exp $
* Menuhandling: labels */
#include "basic.h"
@ -72,7 +72,7 @@ void menu_create_text (_menu *menu, char *name, int x, int y, int maxlen, int ma
memset (text, 0, sizeof (text));
memset (out, 0, sizeof (out));
va_start (args, fmt);
vsprintf (text, fmt, args);
vsnprintf (text, 1024, fmt, args);
va_end (args);
menu_formattext (text, out, lineptr, &linecnt, &maxchar, maxlen, maxlines);

Loading…
Cancel
Save