From 66cb1fe1ff78b80f0acebdcadf0818f70090eab1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 9 Feb 2009 01:06:23 +0000 Subject: (svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness. --- src/widgets/dropdown.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/widgets') 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; -- cgit v1.2.3-54-g00ecf