[Ttssh2-commit] [7180] r7179 の修正を branches / cmake の書き方にあわせた

scmno****@osdn***** scmno****@osdn*****
2018年 8月 18日 (土) 11:40:51 JST


Revision: 7180
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7180
Author:   maya
Date:     2018-08-18 11:40:50 +0900 (Sat, 18 Aug 2018)
Log Message:
-----------
r7179 の修正を branches/cmake の書き方にあわせた

Revision Links:
--------------
    http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7179

Modified Paths:
--------------
    trunk/teraterm/common/dlglib.c

-------------- next part --------------
Modified: trunk/teraterm/common/dlglib.c
===================================================================
--- trunk/teraterm/common/dlglib.c	2018-08-18 02:31:03 UTC (rev 7179)
+++ trunk/teraterm/common/dlglib.c	2018-08-18 02:40:50 UTC (rev 7180)
@@ -361,7 +361,7 @@
 {
 	int i;
 	for (i = 0 ; i < infoCount; i++) {
-		char *key = infos[i].key;
+		const char *key = infos[i].key;
 		char uimsg[MAX_UIMSG];
 		get_lang_msg(key, uimsg, sizeof(uimsg), "", UILanguageFile);
 		if (uimsg[0] != '\0') {
@@ -378,14 +378,13 @@
 HFONT SetDlgFonts(HWND hDlg, const int nIDDlgItems[], int nIDDlgItemCount,
                   const char *UILanguageFile, PCHAR key)
 {
-	HFONT hPrevFont;
+	HFONT hPrevFont = (HFONT)SendMessage(hDlg, WM_GETFONT, 0, 0);
 	LOGFONT logfont;
 	HFONT hNewFont;
-	int i;
 	if (key == NULL) key = "DLG_TAHOMA_FONT";
-	hPrevFont = (HFONT)SendMessage(hDlg, WM_GETFONT, 0, 0);
 	GetObject(hPrevFont, sizeof(LOGFONT), &logfont);
 	if (get_lang_font(key, hDlg, &logfont, &hNewFont, UILanguageFile)) {
+		int i;
 		for (i = 0 ; i < nIDDlgItemCount ; i++) {
 			const int nIDDlgItem = nIDDlgItems[i];
 			SendDlgItemMessage(hDlg, nIDDlgItem, WM_SETFONT, (WPARAM)hNewFont, MAKELPARAM(TRUE,0));



Ttssh2-commit メーリングリストの案内