diff options
author | George Hazan <ghazan@miranda.im> | 2018-10-30 13:23:54 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-10-30 13:23:54 +0300 |
commit | f307c5760e92529bf9653c528e624070b0cca2cf (patch) | |
tree | 6e1c21826353ac4a9ce0e4ce0036dd4baa92dcec /plugins/TabSRMM/src/msgdlgutils.cpp | |
parent | 767c5e08a6e63cba75da64d2d344339ea72d70bd (diff) |
tabSRMM:
- obsolete M.GetDword & M.GetByte calls removed;
- useless m_isFavorite & m_isRecent moved from CContactCache to CMimAPI;
- other code cleaning
Diffstat (limited to 'plugins/TabSRMM/src/msgdlgutils.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgdlgutils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp index b870db669d..b30e050518 100644 --- a/plugins/TabSRMM/src/msgdlgutils.cpp +++ b/plugins/TabSRMM/src/msgdlgutils.cpp @@ -1116,7 +1116,7 @@ void CTabBaseDlg::FindFirstEvent() {
int historyMode = db_get_b(m_hContact, SRMSGMOD, SRMSGSET_LOADHISTORY, -1);
if (historyMode == -1)
- historyMode = (int)M.GetByte(SRMSGMOD, SRMSGSET_LOADHISTORY, SRMSGDEFSET_LOADHISTORY);
+ historyMode = (int)db_get_b(0, SRMSGMOD, SRMSGSET_LOADHISTORY, SRMSGDEFSET_LOADHISTORY);
m_hDbEventFirst = db_event_firstUnread(m_hContact);
@@ -1453,16 +1453,16 @@ int CTabBaseDlg::MsgWindowDrawHandler(DRAWITEMSTRUCT *dis) void TSAPI LoadThemeDefaults(TContainerData *pContainer)
{
memset(&pContainer->theme, 0, sizeof(TLogTheme));
- pContainer->theme.bg = M.GetDword(FONTMODULE, SRMSGSET_BKGCOLOUR, GetSysColor(COLOR_WINDOW));
+ pContainer->theme.bg = db_get_dw(0, FONTMODULE, SRMSGSET_BKGCOLOUR, GetSysColor(COLOR_WINDOW));
pContainer->theme.statbg = PluginConfig.crStatus;
pContainer->theme.oldinbg = PluginConfig.crOldIncoming;
pContainer->theme.oldoutbg = PluginConfig.crOldOutgoing;
pContainer->theme.inbg = PluginConfig.crIncoming;
pContainer->theme.outbg = PluginConfig.crOutgoing;
- pContainer->theme.hgrid = M.GetDword(FONTMODULE, "hgrid", RGB(224, 224, 224));
+ pContainer->theme.hgrid = db_get_dw(0, FONTMODULE, "hgrid", RGB(224, 224, 224));
pContainer->theme.left_indent = M.GetDword("IndentAmount", 20) * 15;
pContainer->theme.right_indent = M.GetDword("RightIndent", 20) * 15;
- pContainer->theme.inputbg = M.GetDword(FONTMODULE, "inputbg", SRMSGDEFSET_BKGCOLOUR);
+ pContainer->theme.inputbg = db_get_dw(0, FONTMODULE, "inputbg", SRMSGDEFSET_BKGCOLOUR);
for (int i = 1; i <= 5; i++) {
char szTemp[40];
|