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 /industry_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 'industry_gui.c')
-rw-r--r-- | industry_gui.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/industry_gui.c b/industry_gui.c index 08c743f29..676cdd5f2 100644 --- a/industry_gui.c +++ b/industry_gui.c @@ -22,7 +22,6 @@ extern const byte _build_industry_types[4][12]; extern const byte _industry_type_costs[37]; static void UpdateIndustryProduction(Industry *i); -extern void DrawArrowButtons(int x, int y, int state); static void BuildIndustryWndProc(Window *w, WindowEvent *e) { @@ -311,7 +310,7 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e) DrawString(4 + (NEED_ALTERB ? 30 : 0), 127, STR_482B_TRANSPORTED, 0); // Let's put out those buttons.. if (NEED_ALTERB) - DrawArrowButtons(5, 127, (WP(w,vp2_d).data_2 == 1 ? WP(w,vp2_d).data_3 : 0)); + DrawArrowButtons(5, 127, 3, (WP(w,vp2_d).data_2 == 1) ? WP(w,vp2_d).data_3 : 0, true); if (i->produced_cargo[1] != CT_INVALID) { SetDParam(0, _cargoc.names_long[i->produced_cargo[1]]); @@ -320,7 +319,7 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e) DrawString(4 + (NEED_ALTERB ? 30 : 0), 137, STR_482B_TRANSPORTED, 0); // Let's put out those buttons.. if (NEED_ALTERB) { - DrawArrowButtons(5, 137, (WP(w,vp2_d).data_2 == 2 ? WP(w,vp2_d).data_3 : 0)); + DrawArrowButtons(5, 137, 3, (WP(w,vp2_d).data_2 == 2) ? WP(w,vp2_d).data_3 : 0, true); } } } |