summaryrefslogtreecommitdiff
path: root/plugins/SMS/src/functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SMS/src/functions.cpp')
-rw-r--r--plugins/SMS/src/functions.cpp8
1 files changed, 4 insertions, 4 deletions
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;