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/IEView/src/ScriverHTMLBuilder.cpp | 42 +++++++++++++++---------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'plugins/IEView/src/ScriverHTMLBuilder.cpp') diff --git a/plugins/IEView/src/ScriverHTMLBuilder.cpp b/plugins/IEView/src/ScriverHTMLBuilder.cpp index c910643352..8283b2e474 100644 --- a/plugins/IEView/src/ScriverHTMLBuilder.cpp +++ b/plugins/IEView/src/ScriverHTMLBuilder.cpp @@ -89,29 +89,29 @@ void ScriverHTMLBuilder::loadMsgDlgFont(int i, LOGFONTA * lf, COLORREF * colour) DBVARIANT dbv; if (colour) { mir_snprintf(str, "SRMFont%dCol", i); - *colour = db_get_dw(NULL, SRMMMOD, str, 0x000000); + *colour = db_get_dw(0, SRMMMOD, str, 0x000000); } if (lf) { mir_snprintf(str, "SRMFont%dSize", i); - lf->lfHeight = (char)db_get_b(NULL, SRMMMOD, str, 10); + lf->lfHeight = (char)db_get_b(0, SRMMMOD, str, 10); lf->lfHeight = abs(lf->lfHeight); lf->lfWidth = 0; lf->lfEscapement = 0; lf->lfOrientation = 0; mir_snprintf(str, "SRMFont%dSty", i); - style = db_get_b(NULL, SRMMMOD, str, 0); + style = db_get_b(0, SRMMMOD, str, 0); lf->lfWeight = style & FONTF_BOLD ? FW_BOLD : FW_NORMAL; lf->lfItalic = style & FONTF_ITALIC ? 1 : 0; lf->lfUnderline = style & FONTF_UNDERLINE ? 1 : 0; lf->lfStrikeOut = 0; mir_snprintf(str, "SRMFont%dSet", i); - lf->lfCharSet = db_get_b(NULL, SRMMMOD, str, DEFAULT_CHARSET); + lf->lfCharSet = db_get_b(0, SRMMMOD, str, DEFAULT_CHARSET); lf->lfOutPrecision = OUT_DEFAULT_PRECIS; lf->lfClipPrecision = CLIP_DEFAULT_PRECIS; lf->lfQuality = DEFAULT_QUALITY; lf->lfPitchAndFamily = DEFAULT_PITCH | FF_DONTCARE; mir_snprintf(str, "SRMFont%d", i); - if (db_get_s(NULL, SRMMMOD, str, &dbv)) + if (db_get_s(0, SRMMMOD, str, &dbv)) strncpy_s(lf->lfFaceName, "Verdana", _TRUNCATE); else { strncpy_s(lf->lfFaceName, dbv.pszVal, _TRUNCATE); @@ -196,10 +196,10 @@ void ScriverHTMLBuilder::buildHead(IEView *view, IEVIEWEVENT *event) ReleaseDC(nullptr, hdc); str.Append(""); str.Append("