forked from mirror/OpenTTD
(svn r3512) Yet more whitespace fixes (mostly by Rubidium)
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user