[Ttssh2-commit] [4953] Eterm look-feel:

svnno****@sourc***** svnno****@sourc*****
2012年 5月 23日 (水) 00:55:31 JST


Revision: 4953
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/4953
Author:   yutakapon
Date:     2012-05-23 00:55:30 +0900 (Wed, 23 May 2012)
Log Message:
-----------
Eterm look-feel:
未接続から新規接続を行うと、背景画像が真っ黒になってしまう問題を修正した。

Modified Paths:
--------------
    trunk/teraterm/teraterm/vtdisp.c

-------------- next part --------------
Modified: trunk/teraterm/teraterm/vtdisp.c
===================================================================
--- trunk/teraterm/teraterm/vtdisp.c	2012-05-21 14:51:27 UTC (rev 4952)
+++ trunk/teraterm/teraterm/vtdisp.c	2012-05-22 15:55:30 UTC (rev 4953)
@@ -1454,6 +1454,10 @@
   // Additional settings \x82\xA9\x82\xE7\x8CĂяo\x82\xB3\x82\xEA\x82邱\x82Ƃ\xAA\x82\xA0\x82邽\x82߁B
   if (ts.EtermLookfeel.BGThemeFile[0] == '\0') {
 	  ts.EtermLookfeel.BGEnable = BGEnable = BGGetOnOff("BGEnable",FALSE,ts.SetupFName);
+  } else {
+	  BGEnable = BGGetOnOff("BGEnable",FALSE,ts.SetupFName);
+  }
+
 	  ts.EtermLookfeel.BGUseAlphaBlendAPI = BGGetOnOff("BGUseAlphaBlendAPI",TRUE ,ts.SetupFName);
 	  ts.EtermLookfeel.BGNoFrame = BGGetOnOff("BGNoFrame"         ,FALSE,ts.SetupFName);
 	  ts.EtermLookfeel.BGFastSizeMove = BGGetOnOff("BGFastSizeMove"    ,TRUE ,ts.SetupFName);
@@ -1462,6 +1466,7 @@
 	  GetPrivateProfileString(BG_SECTION,"BGSPIPath","plugin",BGSPIPath,MAX_PATH,ts.SetupFName);
 	  strncpy_s(ts.EtermLookfeel.BGSPIPath, sizeof(ts.EtermLookfeel.BGSPIPath), BGSPIPath, _TRUNCATE);
 
+  if (ts.EtermLookfeel.BGThemeFile[0] == '\0') {
 	  //\x83R\x83\x93\x83t\x83B\x83O\x83t\x83@\x83C\x83\x8B\x82̌\x88\x92\xE8
 	  GetPrivateProfileString(BG_SECTION,"BGThemeFile","",path,MAX_PATH,ts.SetupFName);
 	  strncpy_s(ts.EtermLookfeel.BGThemeFile, sizeof(ts.EtermLookfeel.BGThemeFile), path, _TRUNCATE);
@@ -1469,7 +1474,7 @@
 	  // \x94w\x8Ci\x89摜\x82̓ǂݍ\x9E\x82\xDD
 	  _snprintf_s(path, sizeof(path), _TRUNCATE, "%s\\%s", ts.HomeDir, BG_THEME_IMAGEFILE);
 	  GetPrivateProfileString(BG_SECTION, BG_DESTFILE, "", ts.BGImageFilePath, sizeof(ts.BGImageFilePath), path);
-  }
+  } 
 
   if(!BGEnable)
     return;



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