• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision4946 (tree)
Time2012-05-14 01:01:12
Author(del#24082)

Log Message

Eterm look-feel が無効化できないことがあるバグを修正した。

Change Summary

Incremental Difference

--- trunk/teraterm/teraterm/vtdisp.c (revision 4945)
+++ trunk/teraterm/teraterm/vtdisp.c (revision 4946)
@@ -1450,19 +1450,19 @@
14501450 BGDestruct();
14511451
14521452 //BG が有効かチェック
1453- ts.EtermLookfeel.BGEnable = BGEnable = BGGetOnOff("BGEnable",FALSE,ts.SetupFName);
1454- ts.EtermLookfeel.BGUseAlphaBlendAPI = BGGetOnOff("BGUseAlphaBlendAPI",TRUE ,ts.SetupFName);
1455- ts.EtermLookfeel.BGNoFrame = BGGetOnOff("BGNoFrame" ,FALSE,ts.SetupFName);
1456- ts.EtermLookfeel.BGFastSizeMove = BGGetOnOff("BGFastSizeMove" ,TRUE ,ts.SetupFName);
1457- ts.EtermLookfeel.BGNoCopyBits = BGGetOnOff("BGFlickerlessMove" ,TRUE ,ts.SetupFName);
1453+ // 空の場合のみ、ディスクから読む。BGInitialize()が Tera Term 起動時以外にも、
1454+ // Additional settings から呼び出されることがあるため。
1455+ if (ts.EtermLookfeel.BGThemeFile[0] == '\0') {
1456+ ts.EtermLookfeel.BGEnable = BGEnable = BGGetOnOff("BGEnable",FALSE,ts.SetupFName);
1457+ ts.EtermLookfeel.BGUseAlphaBlendAPI = BGGetOnOff("BGUseAlphaBlendAPI",TRUE ,ts.SetupFName);
1458+ ts.EtermLookfeel.BGNoFrame = BGGetOnOff("BGNoFrame" ,FALSE,ts.SetupFName);
1459+ ts.EtermLookfeel.BGFastSizeMove = BGGetOnOff("BGFastSizeMove" ,TRUE ,ts.SetupFName);
1460+ ts.EtermLookfeel.BGNoCopyBits = BGGetOnOff("BGFlickerlessMove" ,TRUE ,ts.SetupFName);
14581461
1459- GetPrivateProfileString(BG_SECTION,"BGSPIPath","plugin",BGSPIPath,MAX_PATH,ts.SetupFName);
1460- strncpy_s(ts.EtermLookfeel.BGSPIPath, sizeof(ts.EtermLookfeel.BGSPIPath), BGSPIPath, _TRUNCATE);
1462+ GetPrivateProfileString(BG_SECTION,"BGSPIPath","plugin",BGSPIPath,MAX_PATH,ts.SetupFName);
1463+ strncpy_s(ts.EtermLookfeel.BGSPIPath, sizeof(ts.EtermLookfeel.BGSPIPath), BGSPIPath, _TRUNCATE);
14611464
1462- //コンフィグファイルの決定
1463- if (ts.EtermLookfeel.BGThemeFile[0] == '\0') {
1464- // 空の場合のみ、ディスクから読む。BGInitialize()が Tera Term 起動時以外にも、
1465- // Additional settings から呼び出されることがあるため。
1465+ //コンフィグファイルの決定
14661466 GetPrivateProfileString(BG_SECTION,"BGThemeFile","",path,MAX_PATH,ts.SetupFName);
14671467 strncpy_s(ts.EtermLookfeel.BGThemeFile, sizeof(ts.EtermLookfeel.BGThemeFile), path, _TRUNCATE);
14681468
Show on old repository browser