comctl32: Indentation fix
Andrew Talbot
andrew.talbot at talbotville.com
Sat May 24 10:36:47 CDT 2008
Changelog:
comctl32: Indentation fix
diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
index a9647cd..27ab926 100644
--- a/dlls/comctl32/monthcal.c
+++ b/dlls/comctl32/monthcal.c
@@ -357,8 +357,9 @@ static void MONTHCAL_DrawDay(const MONTHCAL_INFO *infoPtr, HDC hdc, int day, int
r2.top = r.top;
r2.right = r.left + 0.5 * infoPtr->textWidth;
r2.bottom = r.bottom;
- if(haveSelectedDay) FillRect(hdc, &r2, hbr);
- haveSelectedDay = TRUE;
+ if(haveSelectedDay)
+ FillRect(hdc, &r2, hbr);
+ haveSelectedDay = TRUE;
} else {
haveSelectedDay = FALSE;
}
diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c
index 62047e5..ea1bb2a 100644
--- a/dlls/comctl32/tab.c
+++ b/dlls/comctl32/tab.c
@@ -380,7 +380,7 @@ static BOOL TAB_InternalGetItemRect(
itemRect->top = clientRect.top + itemRect->top * infoPtr->tabHeight +
((lStyle & TCS_BUTTONS) ? itemRect->top * BUTTON_SPACINGY : SELECTED_TAB_OFFSET);
itemRect->bottom = itemRect->top + infoPtr->tabHeight;
- }
+ }
/*
* "scroll" it to make sure the item at the very left of the
@@ -927,10 +927,10 @@ static LRESULT TAB_OnHScroll(TAB_INFO *infoPtr, int nScrollCode, int nPos, HWND
TAB_RecalcHotTrack(infoPtr, NULL, NULL, NULL);
TAB_InvalidateTabArea(infoPtr);
SendMessageW(infoPtr->hwndUpDown, UDM_SETPOS, 0,
- MAKELONG(infoPtr->leftmostVisible, 0));
- }
+ MAKELONG(infoPtr->leftmostVisible, 0));
+ }
- return 0;
+ return 0;
}
/******************************************************************************
@@ -1257,11 +1257,11 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
infoPtr->uNumRows = curItemRowCount;
/* Arrange all tabs evenly if style says so */
- if (!(lStyle & TCS_RAGGEDRIGHT) &&
- ((lStyle & TCS_MULTILINE) || (lStyle & TCS_VERTICAL)) &&
- (infoPtr->uNumItem > 0) &&
- (infoPtr->uNumRows > 1))
- {
+ if (!(lStyle & TCS_RAGGEDRIGHT) &&
+ ((lStyle & TCS_MULTILINE) || (lStyle & TCS_VERTICAL)) &&
+ (infoPtr->uNumItem > 0) &&
+ (infoPtr->uNumRows > 1))
+ {
INT tabPerRow,remTab,iRow;
UINT iItm;
INT iCount=0;
@@ -2388,9 +2388,9 @@ static void TAB_EnsureSelectionVisible(
if (item->rect.top > newselected)
item->rect.top-=1;
}
- }
- }
- TAB_RecalcHotTrack(infoPtr, NULL, NULL, NULL);
+ }
+ }
+ TAB_RecalcHotTrack(infoPtr, NULL, NULL, NULL);
}
}
diff --git a/dlls/comctl32/theme_combo.c b/dlls/comctl32/theme_combo.c
index 477138e..32290ea 100644
--- a/dlls/comctl32/theme_combo.c
+++ b/dlls/comctl32/theme_combo.c
@@ -143,22 +143,22 @@ static void paint_text (HWND hwnd, HDC hdc, DWORD dwStyle, const COMBOBOXINFO *c
FillRect( hdc, &rectEdit, GetSysColorBrush(COLOR_HIGHLIGHT) );
SetBkColor( hdc, GetSysColor( COLOR_HIGHLIGHT ) );
SetTextColor( hdc, GetSysColor( COLOR_HIGHLIGHTTEXT ) );
- }
+ }
- ExtTextOutW( hdc,
- rectEdit.left + 1,
- rectEdit.top + 1,
- ETO_OPAQUE | ETO_CLIPPED,
- &rectEdit,
- pText ? pText : empty_stringW , size, NULL );
+ ExtTextOutW( hdc,
+ rectEdit.left + 1,
+ rectEdit.top + 1,
+ ETO_OPAQUE | ETO_CLIPPED,
+ &rectEdit,
+ pText ? pText : empty_stringW , size, NULL );
- if ( focused && !dropped )
- DrawFocusRect( hdc, &rectEdit );
+ if ( focused && !dropped )
+ DrawFocusRect( hdc, &rectEdit );
}
if( hPrevFont )
SelectObject(hdc, hPrevFont );
-
+
HeapFree( GetProcessHeap(), 0, pText );
}
diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index bd37e19..a90581b 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -4446,7 +4446,7 @@ TOOLBAR_SetButtonInfoA (HWND hwnd, WPARAM wParam, LPARAM lParam)
/* iString is index, zero it to make Str_SetPtr succeed */
btnPtr->iString=0;
- Str_SetPtrAtoW ((LPWSTR *)&btnPtr->iString, lptbbi->pszText);
+ Str_SetPtrAtoW ((LPWSTR *)&btnPtr->iString, lptbbi->pszText);
}
/* save the button rect to see if we need to redraw the whole toolbar */
More information about the wine-patches
mailing list