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 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/SMS/src/functions.cpp') 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; -- cgit v1.2.3