diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-14 11:13:37 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-14 11:13:37 +0000 |
commit | 721aea0764451e985d575236205808bbef298244 (patch) | |
tree | 3a1c566c364e5fc2fff86b87d494497e7de6f93d /plugins/Modernb/modern_skinengine.cpp | |
parent | 1784cdf49b8196219563795cf3b11b7c4c2a6746 (diff) |
one more "#ifsef Unicode" removal
git-svn-id: http://svn.miranda-ng.org/main/trunk@409 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Modernb/modern_skinengine.cpp')
-rw-r--r-- | plugins/Modernb/modern_skinengine.cpp | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/plugins/Modernb/modern_skinengine.cpp b/plugins/Modernb/modern_skinengine.cpp index 0a9e4c806a..487285304e 100644 --- a/plugins/Modernb/modern_skinengine.cpp +++ b/plugins/Modernb/modern_skinengine.cpp @@ -2683,16 +2683,12 @@ static int ske_DeleteAllSettingInSection(char * SectionName) BOOL ske_TextOutA(HDC hdc, int x, int y, char * lpString, int nCount)
{
-#ifdef UNICODE
TCHAR *buf=(TCHAR *)mir_alloc((2+nCount)*sizeof(TCHAR));
BOOL res;
MultiByteToWideChar(CallService( MS_LANGPACK_GETCODEPAGE, 0, 0 ), 0, lpString, -1, buf, (2+nCount)*sizeof(TCHAR));
res=ske_TextOut(hdc,x,y,buf,nCount);
mir_free_and_nill(buf);
return res;
-#else
- return ske_TextOut(hdc,x,y,lpString,nCount);
-#endif
}
BOOL ske_TextOut(HDC hdc, int x, int y, LPCTSTR lpString, int nCount)
@@ -3266,15 +3262,11 @@ INT_PTR ske_Service_DrawTextWithEffect( WPARAM wParam, LPARAM lParam ) BOOL ske_DrawTextA(HDC hdc, char * lpString, int nCount, RECT * lpRect, UINT format)
{
-#ifdef UNICODE
TCHAR *buf=mir_a2u(lpString);
BOOL res;
res=ske_DrawText(hdc,buf,nCount,lpRect,format);
mir_free(buf);
return res;
-#else
- return ske_DrawText(hdc,lpString,nCount,lpRect,format);
-#endif
}
@@ -4285,11 +4277,7 @@ TCHAR* ske_ReplaceVar(TCHAR *var) buf[i]='\0';
}
mir_free_and_nill(var);
-#ifdef UNICODE
return mir_a2u(buf);
-#else
- return mir_strdup(buf);
-#endif
}
mir_free_and_nill(var);
@@ -4397,13 +4385,8 @@ static void OLDske_AddParseTextGlyphObject(char * szGlyphTextID,char * szDefineS glText->dwColor=ske_HexToARGB(GetParamN(szDefineString,buf,sizeof(buf),7,',',TRUE));
glText->dwShadow=ske_HexToARGB(GetParamN(szDefineString,buf,sizeof(buf),8,',',TRUE));
-#ifdef _UNICODE
glText->stValueText=mir_a2u(GetParamN(szDefineString,buf,sizeof(buf),9,',',TRUE));
glText->stText=ske_ParseText(glText->stValueText);
-#else
- glText->stValueText=mir_strdup(GetParamN(szDefineString,buf,sizeof(buf),9,',',TRUE));
- glText->stText=ske_ParseText(glText->stValueText);
-#endif
li.List_Insert(globj->plTextList,(void*)glText,globj->plTextList->realCount);
qsort(globj->plTextList->items,globj->plTextList->realCount,sizeof(void*),(int(*)(const void*, const void*))globj->plTextList->sortFunc);
}
@@ -4441,13 +4424,9 @@ static void ske_AddParseTextGlyphObject(char * szGlyphTextID,char * szDefineStri glText->dwColor=ske_HexToARGB(GetParamN(szDefineString,buf,sizeof(buf),7,',',TRUE));
glText->dwShadow=ske_HexToARGB(GetParamN(szDefineString,buf,sizeof(buf),8,',',TRUE));
-#ifdef _UNICODE
glText->stValueText=mir_a2u(GetParamN(szDefineString,buf,sizeof(buf),9,',',TRUE));
glText->stText=ske_ParseText(glText->stValueText);
-#else
- glText->stValueText=mir_strdup(GetParamN(szDefineString,buf,sizeof(buf),9,',',TRUE));
- glText->stText=ske_ParseText(glText->stValueText);
-#endif
+
if (!Skin->pTextList)
Skin->pTextList=li.List_Create(0,1);
li.List_InsertPtr(Skin->pTextList,glText);
|