diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-11-14 13:36:09 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-11-14 13:36:09 +0000 |
commit | 7205e006b83f8cbeb70c10507cfc2de7698cc4e9 (patch) | |
tree | 94d6a894705bdc68d013fdac5fddb55fafc67f5e /src/modules/clist/clcutils.cpp | |
parent | 1a9a5f548e8f507a60997f59a0e09d94b2d6f2b8 (diff) |
tabs and spaces cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@2310 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/clist/clcutils.cpp')
-rw-r--r-- | src/modules/clist/clcutils.cpp | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/modules/clist/clcutils.cpp b/src/modules/clist/clcutils.cpp index 19367af5ad..a6326e05fa 100644 --- a/src/modules/clist/clcutils.cpp +++ b/src/modules/clist/clcutils.cpp @@ -453,7 +453,8 @@ void fnDeleteFromContactList(HWND hwnd, struct ClcData *dat) case CLCIT_CONTACT:
CallService("CList/DeleteContactCommand", (WPARAM)contact->hContact, (LPARAM)hwnd);
break;
-} }
+ }
+}
static WNDPROC OldRenameEditWndProc;
static LRESULT CALLBACK RenameEditSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
@@ -685,7 +686,8 @@ void fnGetDefaultFontSetting(int i, LOGFONT* lf, COLORREF* colour) case FONTID_NOTONLIST:
*colour = GetSysColor(COLOR_3DSHADOW);
break;
-} }
+ }
+}
void fnGetFontSetting(int i, LOGFONT* lf, COLORREF* colour)
{
@@ -721,7 +723,7 @@ void fnGetFontSetting(int i, LOGFONT* lf, COLORREF* colour) void fnLoadClcOptions(HWND hwnd, struct ClcData *dat)
{
dat->rowHeight = db_get_b(NULL, "CLC", "RowHeight", CLCDEFAULT_ROWHEIGHT);
-
+
LOGFONT lf;
SIZE fontSize;
@@ -775,7 +777,7 @@ void fnLoadClcOptions(HWND hwnd, struct ClcData *dat) dat->hotTextColour = db_get_dw(NULL, "CLC", "HotTextColour", CLCDEFAULT_HOTTEXTCOLOUR);
dat->quickSearchColour = db_get_dw(NULL, "CLC", "QuickSearchColour", CLCDEFAULT_QUICKSEARCHCOLOUR);
dat->useWindowsColours = db_get_b(NULL, "CLC", "UseWinColours", CLCDEFAULT_USEWINDOWSCOLOURS);
-
+
NMHDR hdr;
hdr.code = CLN_OPTIONSCHANGED;
hdr.hwndFrom = hwnd;
@@ -856,23 +858,28 @@ void fnInvalidateItem(HWND hwnd, struct ClcData *dat, int iItem) // row coord functions
int fnGetRowTopY(struct ClcData *dat, int item)
-{ return item * dat->rowHeight;
+{
+ return item * dat->rowHeight;
}
int fnGetRowBottomY(struct ClcData *dat, int item)
-{ return (item+1) * dat->rowHeight;
+{
+ return (item+1) * dat->rowHeight;
}
int fnGetRowTotalHeight(struct ClcData *dat)
-{ return dat->rowHeight * cli.pfnGetGroupContentsCount(&dat->list, 1);
+{
+ return dat->rowHeight * cli.pfnGetGroupContentsCount(&dat->list, 1);
}
int fnGetRowHeight(struct ClcData *dat, int)
-{ return dat->rowHeight;
+{
+ return dat->rowHeight;
}
int fnRowHitTest(struct ClcData *dat, int y)
-{ if ( !dat->rowHeight)
+{
+ if ( !dat->rowHeight)
return y;
return y / dat->rowHeight;
}
|