diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-02 19:34:32 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-02 19:34:32 +0000 |
commit | 3af838e995ecc0d61f45ea18e3c385e363bbe3ca (patch) | |
tree | 6601efa590dd567c893a84787ebec49d5a410a53 /plugins/Clist_modern/src | |
parent | e375ccde7e1f274a557c7023d41677f9b8c92861 (diff) |
- build time removed from Help/About dialog in tabSRMM
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@1327 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src')
-rw-r--r-- | plugins/Clist_modern/src/modern_statusbar.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/plugins/Clist_modern/src/modern_statusbar.cpp b/plugins/Clist_modern/src/modern_statusbar.cpp index 150aa0159b..81f40b4bd2 100644 --- a/plugins/Clist_modern/src/modern_statusbar.cpp +++ b/plugins/Clist_modern/src/modern_statusbar.cpp @@ -23,9 +23,9 @@ COLORREF sttGetColor(char * module, char * color, COLORREF defColor); #define DBFONTF_ITALIC 2
#define DBFONTF_UNDERLINE 4
-typedef struct _ProtoItemData : public MZeroedObject
+struct ProtoItemData : public MZeroedObject
{
- ~_ProtoItemData()
+ ~ProtoItemData()
{
mir_free(ProtoXStatus);
mir_free(ProtoName);
@@ -61,8 +61,7 @@ typedef struct _ProtoItemData : public MZeroedObject int PaddingRight;
bool isDimmed;
-}
- ProtoItemData;
+};
static OBJLIST<ProtoItemData> ProtosData(5);
@@ -203,7 +202,6 @@ int ModernDrawStatusBarWorker(HWND hWnd, HDC hDC) for (int j = 0; j < protoCount; j++) {
int vis;
- char buf[256];
i = pcli->pfnGetAccountIndexByPos(j);
if (i == -1)
@@ -213,6 +211,7 @@ int ModernDrawStatusBarWorker(HWND hWnd, HDC hDC) if ( !vis)
continue;
+ char buf[256];
mir_snprintf(buf, SIZEOF(buf), "SBarAccountIsCustom_%s", accs[i]->szModuleName);
ProtoItemData* p = new ProtoItemData;
@@ -350,8 +349,10 @@ int ModernDrawStatusBarWorker(HWND hWnd, HDC hDC) //Code for each line
DWORD sw;
rectwidth = rc.right-rc.left-g_StatusBarData.rectBorders.left-g_StatusBarData.rectBorders.right;
- if (visProtoCount > 1) sw = (rectwidth-(g_StatusBarData.extraspace*(visProtoCount-1)))/visProtoCount;
- else sw = rectwidth;
+ if (visProtoCount > 1)
+ sw = (rectwidth-(g_StatusBarData.extraspace*(visProtoCount-1)))/visProtoCount;
+ else
+ sw = rectwidth;
int *ProtoWidth = (int*)mir_alloc(sizeof(int)*visProtoCount);
for (i=0; i < visProtoCount; i++) {
|