From 7577954ced47f09803bc1b3881d47f222dbd306b Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 18 Apr 2007 22:10:36 +0000 Subject: (svn r9672) -Cleanup: lots of coding style fixes around operands. --- src/graph_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/graph_gui.cpp') diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 56696b371..99c0941f6 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -222,7 +222,7 @@ static void DrawGraph(const GraphDrawer *gw) y = gw->top + x_axis_offset - (x_axis_offset * datapoint) / highest_value; /* Draw the point. */ - GfxFillRect(x-1, y-1, x+1, y+1, color); + GfxFillRect(x - 1, y - 1, x + 1, y + 1, color); /* Draw the line connected to the previous point. */ if (prev_x != INVALID_DATAPOINT_POS) GfxDrawLine(prev_x, prev_y, x, y, color); @@ -268,7 +268,7 @@ static void GraphLegendWndProc(Window *w, WindowEvent *e) FOR_ALL_PLAYERS(p) { if (!p->is_active) continue; - DrawPlayerIcon(p->index, 4, 18+p->index*12); + DrawPlayerIcon(p->index, 4, 18 + p->index * 12); SetDParam(0, p->name_1); SetDParam(1, p->name_2); @@ -330,7 +330,7 @@ static void SetupGraphDrawerForPlayers(GraphDrawer *gd) const Player* p; uint excluded_players = _legend_excluded_players; byte nums; - int mo,yr; + int mo, yr; /* Exclude the players which aren't valid */ FOR_ALL_PLAYERS(p) { @@ -908,7 +908,7 @@ static const WindowDesc _company_league_desc = { void ShowCompanyLeagueTable() { - AllocateWindowDescFront(&_company_league_desc,0); + AllocateWindowDescFront(&_company_league_desc, 0); } /*****************************/ -- cgit v1.2.3-54-g00ecf