summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-08-08 06:02:06 +0000
committerpeter1138 <peter1138@openttd.org>2008-08-08 06:02:06 +0000
commit2c92a979ad431b9f64a402e3ccfed51df6a40e57 (patch)
tree5c9acf88575c73788ebe409afd94b2e378ed557a /src
parentf4997d8866ec2753f4bfb1887f6e744bc04b3fc3 (diff)
downloadopenttd-2c92a979ad431b9f64a402e3ccfed51df6a40e57.tar.xz
(svn r14018) -Fix (r14017): Typos prevented compilation.
Diffstat (limited to 'src')
-rw-r--r--src/settings_gui.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 311882a82..f2e04745a 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -1006,7 +1006,7 @@ void ShowPatchesSelection()
* @param clickable_left is the left button clickable?
* @param clickable_right is the right button clickable?
*/
-void DrawArrowButtons(int x, int y, Colours c, byte state, bool clickable_left, bool clickable_right)
+void DrawArrowButtons(int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right)
{
int colour = _colour_gradient[COLOUR_YELLOW][2];
@@ -1016,10 +1016,12 @@ void DrawArrowButtons(int x, int y, Colours c, byte state, bool clickable_left,
DrawStringCentered(x + 15, y + 1, STR_681A, TC_FROMSTRING); // [>]
/* Grey out the buttons that aren't clickable */
- if (!clickable_left)
+ if (!clickable_left) {
GfxFillRect(x + 1, y + 1, x + 1 + 8, y + 8, colour, FILLRECT_CHECKER);
- if (!clickable_right)
- GfxFillRect(x + 11, y + 1, x + 11 + 8, y + 8, color, FILLRECT_CHECKER);
+ }
+ if (!clickable_right) {
+ GfxFillRect(x + 11, y + 1, x + 11 + 8, y + 8, colour, FILLRECT_CHECKER);
+ }
}
/** These are not, strickly speaking, widget enums,