From 53fe3e46177d17b4941610de19f5cc6210700cb4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 12 Nov 2018 21:44:56 +0300 Subject: db_* functions replaced with g_plugin calls --- plugins/SMS/src/functions.cpp | 8 ++++---- plugins/SMS/src/recvdlg.cpp | 4 ++-- plugins/SMS/src/senddlg.cpp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/SMS/src') diff --git a/plugins/SMS/src/functions.cpp b/plugins/SMS/src/functions.cpp index ef904f371d..d1cd4d92b8 100644 --- a/plugins/SMS/src/functions.cpp +++ b/plugins/SMS/src/functions.cpp @@ -440,7 +440,7 @@ void LoadMsgDlgFont(int i, LOGFONT *lf, COLORREF *colour) if (colour) { mir_snprintf(str, "Font%dCol", i); - (*colour) = db_get_dw(NULL, SRMMMOD, str, fontOptionsList[0].defColour); + (*colour) = db_get_dw(0, SRMMMOD, str, fontOptionsList[0].defColour); } if (lf) { @@ -453,18 +453,18 @@ void LoadMsgDlgFont(int i, LOGFONT *lf, COLORREF *colour) } mir_snprintf(str, "Font%dSize", i); - lf->lfHeight = (char)db_get_b(NULL, SRMMMOD, str, fontOptionsList[0].defSize); + lf->lfHeight = (char)db_get_b(0, SRMMMOD, str, fontOptionsList[0].defSize); lf->lfWidth = 0; lf->lfEscapement = 0; lf->lfOrientation = 0; mir_snprintf(str, "Font%dSty", i); - style = db_get_b(NULL, SRMMMOD, str, fontOptionsList[0].defStyle); + style = db_get_b(0, SRMMMOD, str, fontOptionsList[0].defStyle); lf->lfWeight = style&FONTF_BOLD ? FW_BOLD : FW_NORMAL; lf->lfItalic = style&FONTF_ITALIC ? 1 : 0; lf->lfUnderline = 0; lf->lfStrikeOut = 0; mir_snprintf(str, "Font%dSet", i); - lf->lfCharSet = db_get_b(NULL, SRMMMOD, str, MsgDlgGetFontDefaultCharset(lf->lfFaceName)); + lf->lfCharSet = db_get_b(0, SRMMMOD, str, MsgDlgGetFontDefaultCharset(lf->lfFaceName)); lf->lfOutPrecision = OUT_DEFAULT_PRECIS; lf->lfClipPrecision = CLIP_DEFAULT_PRECIS; lf->lfQuality = DEFAULT_QUALITY; diff --git a/plugins/SMS/src/recvdlg.cpp b/plugins/SMS/src/recvdlg.cpp index eb4ad3ace6..8bf10ab7a7 100644 --- a/plugins/SMS/src/recvdlg.cpp +++ b/plugins/SMS/src/recvdlg.cpp @@ -81,7 +81,7 @@ INT_PTR CALLBACK RecvSmsDlgProc(HWND hWndDlg, UINT message, WPARAM wParam, LPARA hFont = CreateFontIndirect(&lf); SendDlgItemMessage(hWndDlg, IDC_MESSAGE, WM_SETFONT, (WPARAM)hFont, MAKELPARAM(TRUE, 0)); - COLORREF colour = db_get_dw(NULL, SRMMMOD, SRMSGSET_BKGCOLOUR, SRMSGDEFSET_BKGCOLOUR); + COLORREF colour = db_get_dw(0, SRMMMOD, SRMSGSET_BKGCOLOUR, SRMSGDEFSET_BKGCOLOUR); prswdWindowData->hBkgBrush = CreateSolidBrush(colour); } @@ -98,7 +98,7 @@ INT_PTR CALLBACK RecvSmsDlgProc(HWND hWndDlg, UINT message, WPARAM wParam, LPARA LoadMsgDlgFont(MSGFONTID_YOURMSG, nullptr, &colour); SetTextColor((HDC)wParam, colour); - SetBkColor((HDC)wParam, db_get_dw(NULL, SRMMMOD, SRMSGSET_BKGCOLOUR, SRMSGDEFSET_BKGCOLOUR)); + SetBkColor((HDC)wParam, db_get_dw(0, SRMMMOD, SRMSGSET_BKGCOLOUR, SRMSGDEFSET_BKGCOLOUR)); return (INT_PTR)prswdWindowData->hBkgBrush; } break; diff --git a/plugins/SMS/src/senddlg.cpp b/plugins/SMS/src/senddlg.cpp index 8ce68079e1..ab495836d1 100644 --- a/plugins/SMS/src/senddlg.cpp +++ b/plugins/SMS/src/senddlg.cpp @@ -107,7 +107,7 @@ INT_PTR CALLBACK SendSmsDlgProc(HWND hWndDlg, UINT message, WPARAM wParam, LPARA hFont = CreateFontIndirect(&lf); SendDlgItemMessage(hWndDlg, IDC_MESSAGE, WM_SETFONT, (WPARAM)hFont, MAKELPARAM(TRUE, 0)); - COLORREF colour = db_get_dw(NULL, SRMMMOD, SRMSGSET_INPBKGCOLOUR, SRMSGDEFSET_BKGCOLOUR); + COLORREF colour = db_get_dw(0, SRMMMOD, SRMSGSET_INPBKGCOLOUR, SRMSGDEFSET_BKGCOLOUR); psswdWindowData->hBkgBrush = CreateSolidBrush(colour); } { @@ -236,7 +236,7 @@ INT_PTR CALLBACK SendSmsDlgProc(HWND hWndDlg, UINT message, WPARAM wParam, LPARA LoadMsgDlgFont(MSGFONTID_MESSAGEAREA, nullptr, &colour); SetTextColor((HDC)wParam, colour); - SetBkColor((HDC)wParam, db_get_dw(NULL, SRMMMOD, SRMSGSET_INPBKGCOLOUR, SRMSGDEFSET_BKGCOLOUR)); + SetBkColor((HDC)wParam, db_get_dw(0, SRMMMOD, SRMSGSET_INPBKGCOLOUR, SRMSGDEFSET_BKGCOLOUR)); return((INT_PTR)psswdWindowData->hBkgBrush); } break; -- cgit v1.2.3