diff options
author | rubidium <rubidium@openttd.org> | 2009-02-09 01:06:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-09 01:06:23 +0000 |
commit | 9907742a0f73bdbbf578cd2b6c424b80d254fed1 (patch) | |
tree | 3fb8cd8b4041aa509972f5b01531eb874e6c113d /src/widgets | |
parent | 7b8c13fa5c7cdaac1342fd7c8244721739e2354c (diff) | |
download | openttd-9907742a0f73bdbbf578cd2b6c424b80d254fed1.tar.xz |
(svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness.
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/dropdown.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp index 986d051d5..88d31ab7a 100644 --- a/src/widgets/dropdown.cpp +++ b/src/widgets/dropdown.cpp @@ -148,11 +148,11 @@ struct DropdownWindow : Window { if (y + item_height < height) { if (sel == item->result) GfxFillRect(x + 1, y, x + width - 1, y + item_height - 1, 0); - item->Draw(x, y, width, height, sel == item->result, (TextColour)this->widget[0].color); + item->Draw(x, y, width, height, sel == item->result, (TextColour)this->widget[0].colour); if (item->masked) { GfxFillRect(x, y, x + width - 1, y + item_height - 1, - _colour_gradient[this->widget[0].color][5], FILLRECT_CHECKER + _colour_gradient[this->widget[0].colour][5], FILLRECT_CHECKER ); } } @@ -307,7 +307,7 @@ void ShowDropDownList(Window *w, DropDownList *list, int selected, int button, u height + 4, _dropdown_menu_widgets); - dw->widget[0].color = wi->color; + dw->widget[0].colour = wi->colour; dw->widget[0].right = width - 1; dw->widget[0].bottom = height + 3; @@ -316,7 +316,7 @@ void ShowDropDownList(Window *w, DropDownList *list, int selected, int button, u if (scroll) { /* We're scrolling, so enable the scroll bar and shrink the list by * the scrollbar's width */ - dw->widget[1].color = wi->color; + dw->widget[1].colour = wi->colour; dw->widget[1].right = dw->widget[0].right; dw->widget[1].left = dw->widget[1].right - 11; dw->widget[1].bottom = dw->widget[0].bottom; |