From a02a0413bd3b34fe9a82f257de1245d374e14517 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Fri, 22 Feb 2013 09:34:08 +0000 Subject: - translation fixes (patch from wishmaster) git-svn-id: http://svn.miranda-ng.org/main/trunk@3683 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/fonts/FontOptions.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/modules/fonts/FontOptions.cpp') diff --git a/src/modules/fonts/FontOptions.cpp b/src/modules/fonts/FontOptions.cpp index 6270dd4613..4e33c31cc1 100644 --- a/src/modules/fonts/FontOptions.cpp +++ b/src/modules/fonts/FontOptions.cpp @@ -462,7 +462,7 @@ static void ShowEffectButton(HWND hwndDlg, BOOL bShow) ShowWindow( GetDlgItem(hwndDlg, IDC_EFFECT_STATIC), bShow ? SW_SHOW : SW_HIDE); } -TCHAR* ModernEffectNames[] = { _T(""), _T("Shadow at left"), _T("Shadow at right"), _T("Outline"), _T("Outline smooth"), _T("Smooth bump"), _T("Contour thin"), _T("Contour heavy") }; +TCHAR* ModernEffectNames[] = { LPGENT(""), LPGENT("Shadow at left"), LPGENT("Shadow at right"), LPGENT("Outline"), LPGENT("Outline smooth"), LPGENT("Smooth bump"), LPGENT("Contour thin"), LPGENT("Contour heavy") }; static INT_PTR CALLBACK ChooseEffectDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { @@ -540,13 +540,11 @@ static void sttSaveFontData(HWND hwndDlg, FontInternal &F) mir_snprintf(str, SIZEOF(str), "%sSize", F.prefix); if (F.flags & FIDF_SAVEACTUALHEIGHT) { - HDC hdc; SIZE size; - HFONT hFont, hOldFont; CreateFromFontSettings(&F.value, &lf); - hFont = CreateFontIndirect(&lf); - hdc = GetDC(hwndDlg); - hOldFont = (HFONT)SelectObject(hdc, hFont); + HFONT hFont = CreateFontIndirect(&lf); + HDC hdc = GetDC(hwndDlg); + HFONT hOldFont = (HFONT)SelectObject(hdc, hFont); GetTextExtentPoint32(hdc, _T("_W"), 2, &size); ReleaseDC(hwndDlg, hdc); SelectObject(hdc, hOldFont); -- cgit v1.2.3