diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-27 10:33:37 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-27 10:33:37 +0000 |
commit | 9291fbdf04bc65fe05611d1a60e586feb86402cc (patch) | |
tree | 82ead844915fa258ea9d65706f20d4699c0a3882 /plugins/Utils/mir_fonts.cpp | |
parent | e320322cbd54511940679b315ec68c37164975fc (diff) |
not needed code removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@11654 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Utils/mir_fonts.cpp')
-rw-r--r-- | plugins/Utils/mir_fonts.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Utils/mir_fonts.cpp b/plugins/Utils/mir_fonts.cpp index 768ac12363..c7af5c3088 100644 --- a/plugins/Utils/mir_fonts.cpp +++ b/plugins/Utils/mir_fonts.cpp @@ -6,7 +6,7 @@ #include "mir_fonts.h"
-int FontService_RegisterFont(const char *pszDbModule,const char *pszDbName,const TCHAR *pszSection,const TCHAR *pszDescription,int position,BOOL bAllowEffects,LOGFONT *plfDefault,COLORREF clrDefault)
+int FontService_RegisterFont(const char *pszDbModule, const char *pszDbName, const TCHAR *pszSection, const TCHAR *pszDescription, const TCHAR* pszBackgroundGroup, const TCHAR* pszBackgroundName, int position, BOOL bAllowEffects, LOGFONT *plfDefault, COLORREF clrDefault)
{
FontIDT fid;
memset(&fid, 0, sizeof(fid));
@@ -15,7 +15,9 @@ int FontService_RegisterFont(const char *pszDbModule,const char *pszDbName,const mir_strncpy(fid.prefix,pszDbName,sizeof(fid.prefix)); /* buffer safe */
mir_tstrncpy(fid.group,pszSection,SIZEOF(fid.group)); /* buffer safe */
mir_tstrncpy(fid.name,pszDescription,SIZEOF(fid.name)); /* buffer safe */
- fid.flags=FIDF_ALLOWREREGISTER;
+ mir_tstrncpy(fid.backgroundGroup, pszBackgroundGroup, SIZEOF(fid.backgroundGroup)); /* buffer safe */
+ mir_tstrncpy(fid.backgroundName, pszBackgroundName, SIZEOF(fid.backgroundName)); /* buffer safe */
+ fid.flags = FIDF_ALLOWREREGISTER;
if(bAllowEffects) fid.flags|=FIDF_ALLOWEFFECTS;
fid.order=position;
if(plfDefault!=NULL) {
|