(svn r7355) -Codechange: replace 'for (i = 0; w->widget[i].type != WWT_TYPE; i++)'-type for loops with 'for (i = 0; i < w->widget_count; i++)'-type for loops

This commit is contained in:
rubidium
2006-12-04 13:46:03 +00:00
parent 11474c26d7
commit 756d6a6efb
4 changed files with 14 additions and 15 deletions

View File

@@ -66,10 +66,9 @@ void CDECL SetWindowWidgetsLoweredState(Window *w, bool lowered_stat, int widget
void RaiseWindowButtons(Window *w)
{
const Widget *wi = w->widget;
uint i = 0;
uint i;
for (i = 0; wi->type != WWT_LAST; i++, wi++) {
for (i = 0; i < w->widget_count; i++) {
if (IsWindowWidgetLowered(w, i)) {
RaiseWindowWidget(w, i);
InvalidateWidget(w, i);