• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision7180 (tree)
Time2018-08-18 11:40:50
Author(del#1144)

Log Message

r7179 の修正を branches/cmake の書き方にあわせた

Change Summary

Incremental Difference

--- trunk/teraterm/common/dlglib.c (revision 7179)
+++ trunk/teraterm/common/dlglib.c (revision 7180)
@@ -361,7 +361,7 @@
361361 {
362362 int i;
363363 for (i = 0 ; i < infoCount; i++) {
364- char *key = infos[i].key;
364+ const char *key = infos[i].key;
365365 char uimsg[MAX_UIMSG];
366366 get_lang_msg(key, uimsg, sizeof(uimsg), "", UILanguageFile);
367367 if (uimsg[0] != '\0') {
@@ -378,14 +378,13 @@
378378 HFONT SetDlgFonts(HWND hDlg, const int nIDDlgItems[], int nIDDlgItemCount,
379379 const char *UILanguageFile, PCHAR key)
380380 {
381- HFONT hPrevFont;
381+ HFONT hPrevFont = (HFONT)SendMessage(hDlg, WM_GETFONT, 0, 0);
382382 LOGFONT logfont;
383383 HFONT hNewFont;
384- int i;
385384 if (key == NULL) key = "DLG_TAHOMA_FONT";
386- hPrevFont = (HFONT)SendMessage(hDlg, WM_GETFONT, 0, 0);
387385 GetObject(hPrevFont, sizeof(LOGFONT), &logfont);
388386 if (get_lang_font(key, hDlg, &logfont, &hNewFont, UILanguageFile)) {
387+ int i;
389388 for (i = 0 ; i < nIDDlgItemCount ; i++) {
390389 const int nIDDlgItem = nIDDlgItems[i];
391390 SendDlgItemMessage(hDlg, nIDDlgItem, WM_SETFONT, (WPARAM)hNewFont, MAKELPARAM(TRUE,0));
Show on old repository browser