1
0
Fork 0

(svn r3512) Yet more whitespace fixes (mostly by Rubidium)

release/0.5
peter1138 2006-02-01 09:08:25 +00:00
parent 84fb96fe85
commit 80952253c2
5 changed files with 26 additions and 27 deletions

View File

@ -105,10 +105,8 @@ void DisplaySplashImage(void)
memset(_screen.dst_ptr, 0xff, _screen.pitch * _screen.height); memset(_screen.dst_ptr, 0xff, _screen.pitch * _screen.height);
if(width > (uint) _screen.width) if (width > (uint) _screen.width) width = _screen.width;
width = _screen.width; if (height > (uint) _screen.height) height = _screen.height;
if(height > (uint) _screen.height)
height = _screen.height;
xoff = (_screen.width - width) / 2; xoff = (_screen.width - width) / 2;
yoff = (_screen.height - height) / 2; yoff = (_screen.height - height) / 2;

View File

@ -130,10 +130,11 @@ static IniGroup *ini_group_alloc(IniFile *ini, const char *grpt, int len)
IniGroup *grp = pool_alloc(&ini->pool, sizeof(IniGroup)); IniGroup *grp = pool_alloc(&ini->pool, sizeof(IniGroup));
grp->ini = ini; grp->ini = ini;
grp->name = pool_strdup(&ini->pool, grpt, len); grp->name = pool_strdup(&ini->pool, grpt, len);
if(!strcmp(grp->name, "newgrf") || !strcmp(grp->name, "servers") || !strcmp(grp->name, "bans") ) if (!strcmp(grp->name, "newgrf") || !strcmp(grp->name, "servers") || !strcmp(grp->name, "bans")) {
grp->type = IGT_LIST; grp->type = IGT_LIST;
else } else {
grp->type = IGT_VARIABLES; grp->type = IGT_VARIABLES;
}
grp->next = NULL; grp->next = NULL;
grp->item = NULL; grp->item = NULL;
grp->comment = NULL; grp->comment = NULL;

View File

@ -1,10 +1,10 @@
/* $Id$ */ /* $Id$ */
/****************************************************************************************** /*****************************************************************************
* Cocoa sound driver * * Cocoa sound driver *
* Known things left to do: * * Known things left to do: *
* - Might need to do endian checking for it to work on both ppc and x86 * * - Might need to do endian checking for it to work on both ppc and x86 *
******************************************************************************************/ *****************************************************************************/
#ifdef WITH_COCOA #ifdef WITH_COCOA