diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-16 11:33:08 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-16 11:33:08 +0000 |
commit | da2edf0603f1552ef53325fa558c28a3c6fdec94 (patch) | |
tree | d8e7844e7ae6c42cb53559ab1e5fcd5aa4bfa6bf /plugins/Scriver/src/chat/main.cpp | |
parent | 38ab4dde6b080defc5e7d7b286110d580cabdaa0 (diff) |
- two chat HBRUSHes moved into CHAT_MANAGER;
- fix for changing fonts;
- crash fix for StdChat unloading;
git-svn-id: http://svn.miranda-ng.org/main/trunk@7677 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src/chat/main.cpp')
-rw-r--r-- | plugins/Scriver/src/chat/main.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/plugins/Scriver/src/chat/main.cpp b/plugins/Scriver/src/chat/main.cpp index a563b99aaf..6c26bc6fd4 100644 --- a/plugins/Scriver/src/chat/main.cpp +++ b/plugins/Scriver/src/chat/main.cpp @@ -27,9 +27,6 @@ void RegisterChatFonts( void ); CHAT_MANAGER *pci;
HMENU g_hMenu = NULL;
-HBRUSH hListBkgBrush = NULL;
-HBRUSH hListSelectedBkgBrush = NULL;
-
GlobalLogSettings g_Settings;
static void OnAddLog(SESSION_INFO *si, int isOk)
@@ -88,17 +85,6 @@ static void OnSetStatus(SESSION_INFO *si, int wStatus) PostMessage(si->hWnd, GC_FIXTABICONS, 0, 0);
}
-static void OnLoadSettings()
-{
- if (hListBkgBrush != NULL)
- DeleteObject(hListBkgBrush);
- hListBkgBrush = CreateSolidBrush(db_get_dw(NULL, "Chat", "ColorNicklistBG", GetSysColor(COLOR_WINDOW)));
-
- if (hListSelectedBkgBrush != NULL)
- DeleteObject(hListSelectedBkgBrush);
- hListSelectedBkgBrush = CreateSolidBrush(db_get_dw(NULL, "Chat", "ColorNicklistSelectedBG", GetSysColor(COLOR_HIGHLIGHT)));
-}
-
static void OnFlashWindow(SESSION_INFO *si, int bInactive)
{
if (bInactive && si->hWnd && db_get_b(NULL, "Chat", "FlashWindowHighlight", 0) != 0)
@@ -117,7 +103,6 @@ int Chat_Load() pci->OnSetStatus = OnSetStatus;
pci->OnAddLog = OnAddLog;
- pci->OnLoadSettings = OnLoadSettings;
pci->OnSessionRemove = OnSessionRemove;
pci->OnSessionRename = OnSessionRename;
@@ -139,7 +124,6 @@ int Chat_Unload(void) db_set_w(NULL, "Chat", "SplitterX", (WORD)g_Settings.iSplitterX);
DestroyMenu(g_hMenu);
- OptionsUnInit();
return 0;
}
|