diff options
author | belugas <belugas@openttd.org> | 2006-09-08 03:59:38 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-09-08 03:59:38 +0000 |
commit | f01e761f80ce7f17239a2e477a241a3a18a8c5d2 (patch) | |
tree | 3186f1ddb886409b8ef0af79422e47ffa5de3c57 /widget.c | |
parent | 87761ab2d9d0c1cc4ae50c803e33ec2c4bc7141b (diff) | |
download | openttd-f01e761f80ce7f17239a2e477a241a3a18a8c5d2.tar.xz |
(svn r6423) -Codechange: Replace two magic numbers by appropriate enum/define value
Diffstat (limited to 'widget.c')
-rw-r--r-- | widget.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -522,7 +522,7 @@ static void DropdownMenuWndProc(Window *w, WindowEvent *e) sel--; continue; } - if (WP(w,dropdown_d).items[i] != 0) { + if (WP(w,dropdown_d).items[i] != STR_NULL) { if (sel == 0) GfxFillRect(x + 1, y, x + w->width - 4, y + 9, 0); DrawStringTruncated(x + 2, y, WP(w,dropdown_d).items[i], sel == 0 ? 12 : 16, w->width - 4); @@ -634,7 +634,7 @@ void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int butt wi->right - wi[-1].left + 1, i * 10 + 4, DropdownMenuWndProc, - 0x3F, + WC_DROPDOWN_MENU, _dropdown_menu_widgets); w2->widget[0].color = wi->color; |