diff options
author | Darkvater <darkvater@openttd.org> | 2006-03-01 20:24:22 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-03-01 20:24:22 +0000 |
commit | 61b43672e936091fed73ea7d7ccf8dfbdb46e6ab (patch) | |
tree | 4ea032f84cad520199f1d60a28f869c07cd88b21 /misc_gui.c | |
parent | 7a31bb6fb614b575e333d03ad9f332a3b01d6941 (diff) | |
download | openttd-61b43672e936091fed73ea7d7ccf8dfbdb46e6ab.tar.xz |
(svn r3710) - Use the general function DrawArrowButtons() instead of doing it manually. The function has two parameters added, colour and an enabled flag.
Diffstat (limited to 'misc_gui.c')
-rw-r--r-- | misc_gui.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/misc_gui.c b/misc_gui.c index c9d27e90b..0641f4d34 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -1791,10 +1791,8 @@ static void CheatsWndProc(Window *w, WindowEvent *e) } else { int32 val; - DrawFrameRect(x + 20, y + 1, x + 20 + 9, y + 9, 3, clk == i * 2 + 1 ? FR_LOWERED : 0); - DrawFrameRect(x + 30, y + 1, x + 30 + 9, y + 9, 3, clk == i * 2 + 2 ? FR_LOWERED : 0); - DrawStringCentered(x + 25, y + 1, STR_6819, 0); - DrawStringCentered(x + 35, y + 1, STR_681A, 0); + /* Draw [<][>] boxes for settings of an integer-type */ + DrawArrowButtons(x + 20, y, 3, clk - (i * 2), true); val = ReadCE(ce); |