summaryrefslogtreecommitdiff
path: root/plugins/AutoShutdown/src/utils.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-03-23 20:18:56 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-03-23 20:18:56 +0000
commita447216c8e0ae1226220b9a47dc12122457969fb (patch)
treed726ef0e9449d5343b5eaf6297f1439d4d37d129 /plugins/AutoShutdown/src/utils.cpp
parent500efd6f234f5cb0d84d2396bd0eab6f70a35e10 (diff)
-fixes for x64 version
-fixed double translations (since r3194) -fixed background setting git-svn-id: http://svn.miranda-ng.org/main/trunk@4169 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AutoShutdown/src/utils.cpp')
-rw-r--r--plugins/AutoShutdown/src/utils.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/AutoShutdown/src/utils.cpp b/plugins/AutoShutdown/src/utils.cpp
index 35dc388557..18c893a77d 100644
--- a/plugins/AutoShutdown/src/utils.cpp
+++ b/plugins/AutoShutdown/src/utils.cpp
@@ -210,7 +210,7 @@ BOOL GetFormatedDateTime(TCHAR *pszOut,int nSize,time_t timestamp,BOOL fShowDate
/************************* Fonts & Colors *************************/
-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;
ZeroMemory(&fid,sizeof(fid));
@@ -219,6 +219,8 @@ int FontService_RegisterFont(const char *pszDbModule,const char *pszDbName,const
lstrcpynA(fid.prefix,pszDbName,sizeof(fid.prefix)); /* buffer safe */
lstrcpyn(fid.group,pszSection,SIZEOF(fid.group)); /* buffer safe */
lstrcpyn(fid.name,pszDescription,SIZEOF(fid.name)); /* buffer safe */
+ lstrcpyn(fid.backgroundGroup,pszBackgroundGroup,SIZEOF(fid.backgroundGroup)); /* buffer safe */
+ lstrcpyn(fid.backgroundName,pszBackgroundName,SIZEOF(fid.backgroundName)); /* buffer safe */
fid.flags=FIDF_ALLOWREREGISTER;
if(bAllowEffects) fid.flags|=FIDF_ALLOWEFFECTS;
fid.order=position;