svnno****@sourc*****
svnno****@sourc*****
2012年 5月 14日 (月) 00:47:17 JST
Revision: 4945 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/4945 Author: yutakapon Date: 2012-05-14 00:47:17 +0900 (Mon, 14 May 2012) Log Message: ----------- Eterm look-feelを off にした場合、背景画像のテキストボックスをクリアするようにした。 BGDestFile もデフォルトに戻す。 cf. [Ttssh2-devel 2128] Modified Paths: -------------- trunk/teraterm/teraterm/addsetting.cpp -------------- next part -------------- Modified: trunk/teraterm/teraterm/addsetting.cpp =================================================================== --- trunk/teraterm/teraterm/addsetting.cpp 2012-05-13 15:41:52 UTC (rev 4944) +++ trunk/teraterm/teraterm/addsetting.cpp 2012-05-13 15:47:17 UTC (rev 4945) @@ -939,6 +939,8 @@ GetDlgItem(IDC_BGIMG_BUTTON)->EnableWindow(FALSE); // \x96\xB3\x8C\x{27B0B3}\x82ꂽ\x82\xE7\x81ABGThemeFile \x82\xF0\x8C\xB3\x82ɖ߂\xB7\x81B strncpy_s(ts.EtermLookfeel.BGThemeFile, BG_THEME_IMAGEFILE_DEFAULT, sizeof(ts.EtermLookfeel.BGThemeFile)); + // \x94w\x8Ci\x89摜\x82\xE0\x96\xB3\x8C\x{27B0B7}\x82\xE9\x81B + SetDlgItemText(IDC_BGIMG_EDIT, ""); } return TRUE; @@ -1075,6 +1077,8 @@ if (ts.EtermLookfeel.BGEnable) { GetDlgItemText(IDC_BGIMG_EDIT, ts.BGImageFilePath, sizeof(ts.BGImageFilePath)); + } else { + strncpy_s(ts.BGImageFilePath, sizeof(ts.BGImageFilePath), "%SystemRoot%\\Web\\Wallpaper\\*.bmp", _TRUNCATE); } // (3)