From 6082507fea5070cfa7846a4bc9b0c02706fbeee7 Mon Sep 17 00:00:00 2001 From: belugas Date: Wed, 26 Jul 2006 03:33:12 +0000 Subject: (svn r5609) CodeChange : Apply coding style --- main_gui.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'main_gui.c') diff --git a/main_gui.c b/main_gui.c index 3e63d4144..8a23a7203 100644 --- a/main_gui.c +++ b/main_gui.c @@ -537,7 +537,7 @@ static const Widget _player_menu_widgets[] = { static int GetPlayerIndexFromMenu(int index) { if (index >= 0) { - const Player* p; + const Player *p; FOR_ALL_PLAYERS(p) { if (p->is_active && --index < 0) return p->index; @@ -549,7 +549,7 @@ static int GetPlayerIndexFromMenu(int index) static void UpdatePlayerMenuHeight(Window *w) { uint num = 0; - const Player* p; + const Player *p; FOR_ALL_PLAYERS(p) { if (p->is_active) num++; @@ -786,7 +786,7 @@ static void ToolbarIndustryClick(Window *w) static void ToolbarTrainClick(Window *w) { - const Vehicle* v; + const Vehicle *v; int dis = -1; FOR_ALL_VEHICLES(v) { @@ -797,7 +797,7 @@ static void ToolbarTrainClick(Window *w) static void ToolbarRoadClick(Window *w) { - const Vehicle* v; + const Vehicle *v; int dis = -1; FOR_ALL_VEHICLES(v) { @@ -808,7 +808,7 @@ static void ToolbarRoadClick(Window *w) static void ToolbarShipClick(Window *w) { - const Vehicle* v; + const Vehicle *v; int dis = -1; FOR_ALL_VEHICLES(v) { @@ -819,7 +819,7 @@ static void ToolbarShipClick(Window *w) static void ToolbarAirClick(Window *w) { - const Vehicle* v; + const Vehicle *v; int dis = -1; FOR_ALL_VEHICLES(v) { @@ -869,7 +869,7 @@ bool DoZoomInOutWindow(int how, Window *w) // routine to disable/enable the zoom buttons. Didn't know where to place these otherwise { - Window* wt = NULL; + Window *wt = NULL; switch (w->window_class) { case WC_MAIN_WINDOW: @@ -920,7 +920,7 @@ static void ToolbarZoomOutClick(Window *w) static void ToolbarBuildRailClick(Window *w) { - const Player* p = GetPlayer(_local_player); + const Player *p = GetPlayer(_local_player); Window *w2; w2 = PopupMainToolbMenu(w, 457, 19, STR_1015_RAILROAD_CONSTRUCTION, RAILTYPE_END, ~p->avail_railtypes); WP(w2,menu_d).sel_index = _last_built_railtype; @@ -1032,7 +1032,7 @@ static void ToolbarScenZoomOut(Window *w) void ZoomInOrOutToCursorWindow(bool in, Window *w) { - ViewPort * vp; + ViewPort *vp; Point pt; assert(w != 0); @@ -1629,7 +1629,7 @@ static const Widget _scenedit_industry_candy_widgets[] = { static bool AnyTownExists(void) { - const Town* t; + const Town *t; FOR_ALL_TOWNS(t) { if (t->xy != 0) return true; @@ -1809,7 +1809,7 @@ static void ToolbarBtn_NULL(Window *w) typedef void ToolbarButtonProc(Window *w); -static ToolbarButtonProc* const _toolbar_button_procs[] = { +static ToolbarButtonProc * const _toolbar_button_procs[] = { ToolbarPauseClick, ToolbarFastForwardClick, ToolbarOptionsClick, @@ -2016,7 +2016,7 @@ static const Widget _toolb_scen_widgets[] = { {WIDGETS_END}, }; -static ToolbarButtonProc* const _scen_toolbar_button_procs[] = { +static ToolbarButtonProc * const _scen_toolbar_button_procs[] = { ToolbarPauseClick, ToolbarFastForwardClick, ToolbarOptionsClick, @@ -2274,7 +2274,7 @@ static WindowDesc _main_status_desc = { extern void UpdateAllStationVirtCoord(void); -static void MainWindowWndProc(Window* w, WindowEvent* e) +static void MainWindowWndProc(Window *w, WindowEvent *e) { int off_x; @@ -2392,7 +2392,7 @@ void SetupColorsAndInitialWindow(void) int width,height; for (i = 0; i != 16; i++) { - const byte* b = GetNonSprite(PALETTE_RECOLOR_START + i); + const byte *b = GetNonSprite(PALETTE_RECOLOR_START + i); assert(b); _color_list[i] = *(const ColorList*)(b + 0xC6); -- cgit v1.2.3-54-g00ecf