diff options
author | darkvater <darkvater@openttd.org> | 2004-09-07 21:48:09 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-09-07 21:48:09 +0000 |
commit | 56435c8775398080a08c2b265e03bba386c352fd (patch) | |
tree | d9dac613a8413e7aff8dd5a9051cedf736ffa652 /engine_gui.c | |
parent | 3a241b5ccec2b5f5eb803efbd32f55a5d1de5d97 (diff) | |
download | openttd-56435c8775398080a08c2b265e03bba386c352fd.tar.xz |
(svn r177) -Fix: padded out Widget code to solve warnings on C99 compiler (Tron)
-Fix: added WIDGETS_END macro for WWT_LAST which does this for all last widget-types
Diffstat (limited to 'engine_gui.c')
-rw-r--r-- | engine_gui.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine_gui.c b/engine_gui.c index 14d67e63a..df496ae1f 100644 --- a/engine_gui.c +++ b/engine_gui.c @@ -34,12 +34,12 @@ StringID GetEngineCategoryName(byte engine) } static const Widget _engine_preview_widgets[] = { -{ WWT_TEXTBTN, 5, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW}, +{ WWT_TEXTBTN, 5, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW}, { WWT_CAPTION, 5, 11, 299, 0, 13, STR_8100_MESSAGE_FROM_VEHICLE_MANUFACTURE, STR_018C_WINDOW_TITLE_DRAG_THIS}, -{ WWT_IMGBTN, 5, 0, 299, 14, 191, 0x0}, -{ WWT_PUSHTXTBTN, 5, 85, 144, 172, 183, STR_00C9_NO}, -{ WWT_PUSHTXTBTN, 5, 155, 214, 172, 183, STR_00C8_YES}, -{ WWT_LAST}, +{ WWT_IMGBTN, 5, 0, 299, 14, 191, 0x0, STR_NULL}, +{ WWT_PUSHTXTBTN, 5, 85, 144, 172, 183, STR_00C9_NO, STR_NULL}, +{ WWT_PUSHTXTBTN, 5, 155, 214, 172, 183, STR_00C8_YES, STR_NULL}, +{ WIDGETS_END}, }; typedef void DrawEngineProc(int x, int y, int engine, uint32 image_ormod); |