diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-14 15:55:26 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-14 15:55:26 +0300 |
commit | 58934a360e8ff68bc81d3fd7e17026f7bbb329f0 (patch) | |
tree | 72e45792ff17076f71d1a4dd540ae29a4e4ac262 /plugins/TabSRMM/src/msglog.cpp | |
parent | abf4069c2e3473da8f1d468e46c19951935a912f (diff) |
some fixes to make Coverity happier
Diffstat (limited to 'plugins/TabSRMM/src/msglog.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msglog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp index 2a73f8f2d9..8a95c56780 100644 --- a/plugins/TabSRMM/src/msglog.cpp +++ b/plugins/TabSRMM/src/msglog.cpp @@ -127,7 +127,7 @@ void TSAPI CacheLogFonts() memset(logfonts, 0, (sizeof(LOGFONTA) * (MSGDLGFONTCOUNT + 2)));
for (int i = 0; i < MSGDLGFONTCOUNT; i++) {
- LoadLogfont(i, &logfonts[i], &fontcolors[i], FONTMODULE);
+ LoadLogfont(FONTSECTION_IM, i, &logfonts[i], &fontcolors[i], FONTMODULE);
mir_snprintf(rtfFontsGlobal[i], "\\f%u\\cf%u\\b%d\\i%d\\ul%d\\fs%u", i, i, logfonts[i].lfWeight >= FW_BOLD ? 1 : 0, logfonts[i].lfItalic, logfonts[i].lfUnderline, 2 * abs(logfonts[i].lfHeight) * 74 / logPixelSY);
}
mir_snprintf(rtfFontsGlobal[MSGDLGFONTCOUNT], "\\f%u\\cf%u\\b%d\\i%d\\fs%u", MSGDLGFONTCOUNT, MSGDLGFONTCOUNT, 0, 0, 0);
@@ -143,7 +143,7 @@ void TSAPI CacheLogFonts() COLORREF clr;
LOGFONTA lf;
- LoadLogfont(i + 100, &lf, &clr, FONTMODULE);
+ LoadLogfont(FONTSECTION_IP, i, &lf, &clr, FONTMODULE);
lf.lfUnderline = 0;
CInfoPanel::m_ipConfig.hFonts[i] = CreateFontIndirectA(&lf);
CInfoPanel::m_ipConfig.clrs[i] = clr;
|