summaryrefslogtreecommitdiff
path: root/src/toolbar_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-18 04:37:06 +0000
committerrubidium <rubidium@openttd.org>2008-04-18 04:37:06 +0000
commit9d8fa486af824039fae197212d83365242511da5 (patch)
tree31dd8caca4df193a4a2d7a3cd1ef2974e1a2b5a0 /src/toolbar_gui.cpp
parent6daaf0fc5565599f9c87b431a69cdcbb91ed74ac (diff)
downloadopenttd-9d8fa486af824039fae197212d83365242511da5.tar.xz
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r--src/toolbar_gui.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index bb3d063ad..088e80f8e 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -46,7 +46,7 @@ extern RoadType _last_built_roadtype;
* the default position is aligned with the left side of the clicked button */
Point GetToolbarDropdownPos(uint16 parent_button, int width, int height)
{
- const Window *w = FindWindowById(WC_MAIN_TOOLBAR,0);
+ const Window *w = FindWindowById(WC_MAIN_TOOLBAR, 0);
Point pos;
pos.x = w->widget[GB(parent_button, 0, 8)].left;
pos.x = w->left + Clamp(pos.x, 0, w->width - width);
@@ -175,7 +175,7 @@ static void ToolbarZoomInClick(Window *w)
static void ToolbarZoomOutClick(Window *w)
{
- if (DoZoomInOutWindow(ZOOM_OUT,FindWindowById(WC_MAIN_WINDOW, 0))) {
+ if (DoZoomInOutWindow(ZOOM_OUT, FindWindowById(WC_MAIN_WINDOW, 0))) {
w->HandleButtonClick(18);
SndPlayFx(SND_15_BEEP);
}
@@ -387,8 +387,8 @@ void MainToolbarWndProc(Window *w, WindowEvent *e)
switch (e->event) {
case WE_PAINT:
/* Draw brown-red toolbar bg. */
- GfxFillRect(0, 0, w->width-1, w->height-1, 0xB2);
- GfxFillRect(0, 0, w->width-1, w->height-1, 0xB4 | (1 << PALETTE_MODIFIER_GREYOUT));
+ GfxFillRect(0, 0, w->width - 1, w->height - 1, 0xB2);
+ GfxFillRect(0, 0, w->width - 1, w->height - 1, 0xB4 | (1 << PALETTE_MODIFIER_GREYOUT));
/* If spectator, disable all construction buttons
* ie : Build road, rail, ships, airports and landscaping
@@ -599,8 +599,8 @@ void ScenEditToolbarWndProc(Window *w, WindowEvent *e)
w->SetWidgetDisabledState(7, _patches_newgame.starting_year >= MAX_YEAR);
/* Draw brown-red toolbar bg. */
- GfxFillRect(0, 0, w->width-1, w->height-1, 0xB2);
- GfxFillRect(0, 0, w->width-1, w->height-1, 0xB4 | (1 << PALETTE_MODIFIER_GREYOUT));
+ GfxFillRect(0, 0, w->width - 1, w->height - 1, 0xB2);
+ GfxFillRect(0, 0, w->width - 1, w->height - 1, 0xB4 | (1 << PALETTE_MODIFIER_GREYOUT));
DrawWindowWidgets(w);
@@ -667,7 +667,7 @@ void ScenEditToolbarWndProc(Window *w, WindowEvent *e)
case WE_RESIZE: {
/* There are 15 buttons plus some spacings if the space allows it.
- * Furthermore there are two panels of which one is non-essential
+ * Furthermore there are two panels of which one is non - essential
* and that one can be removed is the space is too small. */
uint buttons_width;
uint spacing;