diff options
author | frosch <frosch@openttd.org> | 2008-06-28 15:44:24 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-06-28 15:44:24 +0000 |
commit | cfdc710104648f5321e0e65676db655aa4709d0e (patch) | |
tree | 8d015d80fd5b0b32f5e85a7550aaf55daca5dd38 /src/settings_gui.cpp | |
parent | 654ea1a3105c6f300b9a1732260706c2a3c1a09a (diff) | |
download | openttd-cfdc710104648f5321e0e65676db655aa4709d0e.tar.xz |
(svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter.
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 5ffa1f436..8489af712 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -1005,7 +1005,7 @@ void ShowPatchesSelection() */ void DrawArrowButtons(int x, int y, int ctab, byte state, bool clickable_left, bool clickable_right) { - int color = (1 << PALETTE_MODIFIER_GREYOUT) | _colour_gradient[COLOUR_YELLOW][2]; + int color = _colour_gradient[COLOUR_YELLOW][2]; DrawFrameRect(x, y + 1, x + 9, y + 9, ctab, (state == 1) ? FR_LOWERED : FR_NONE); DrawFrameRect(x + 10, y + 1, x + 19, y + 9, ctab, (state == 2) ? FR_LOWERED : FR_NONE); @@ -1014,9 +1014,9 @@ void DrawArrowButtons(int x, int y, int ctab, byte state, bool clickable_left, b /* Grey out the buttons that aren't clickable */ if (!clickable_left) - GfxFillRect(x + 1, y + 1, x + 1 + 8, y + 8, color); + GfxFillRect(x + 1, y + 1, x + 1 + 8, y + 8, color, FILLRECT_CHECKER); if (!clickable_right) - GfxFillRect(x + 11, y + 1, x + 11 + 8, y + 8, color); + GfxFillRect(x + 11, y + 1, x + 11 + 8, y + 8, color, FILLRECT_CHECKER); } /** These are not, strickly speaking, widget enums, |