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

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2012年 4月 22日 (日) 19:41:54 JST


Revision: 4909
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4909
Author:   yutakapon
Date:     2012-04-22 19:41:53 +0900 (Sun, 22 Apr 2012)
Log Message:
-----------
Eterm look-feel: 
  - .iniファイルのパス指定に、環境変数文字列を含めることができるようにした。
  - 画像ファイル指定設定ファイル(ImageFile.INI)を追加した。
  - Scale.INI/Tile.INI のパス指定を"Thumbs.db"を拾わないようにするため、"*.jpg"に変更した。

Modified Paths:
--------------
    trunk/installer/release/TERATERM.INI
    trunk/installer/release/theme/Scale.INI
    trunk/installer/release/theme/Tile.INI
    trunk/teraterm/teraterm/vtdisp.c

Added Paths:
-----------
    trunk/installer/release/theme/ImageFile.INI

-------------- next part --------------
Modified: trunk/installer/release/TERATERM.INI
===================================================================
--- trunk/installer/release/TERATERM.INI	2012-04-20 14:05:01 UTC (rev 4908)
+++ trunk/installer/release/TERATERM.INI	2012-04-22 10:41:53 UTC (rev 4909)
@@ -1,5 +1,5 @@
 [BG]
-; Use Background extension (on/off)
+; Use Eterm look-feel Background extension (on/off)
 BGEnable=off
 
 ; Use AlphaBlend API (on/off)

Added: trunk/installer/release/theme/ImageFile.INI
===================================================================
--- trunk/installer/release/theme/ImageFile.INI	                        (rev 0)
+++ trunk/installer/release/theme/ImageFile.INI	2012-04-22 10:41:53 UTC (rev 4909)
@@ -0,0 +1,35 @@
+[BG]
+
+; Advanced Setting
+; Image source setting
+; Type      : Color / Picture / Wallpaper
+: Pattern   : Stretch / Tile / Center / FitWidth / FitHeight / AutoFit
+; AntiAlias : On / Off
+; Color     : R,G,B (0-255)
+; Alpha     : 0-255
+; File      : wildcard => random select
+
+; Dest = (Src1  * Src1Alpha + Dest * (255 - Src1Alpha)) / 255
+; Dest = (Src2  * Src2Alpha + Dest * (255 - Src2Alpha)) / 255
+
+BGReverseTextAlpha = 192
+
+BGDestType      = Picture
+BGDestFile      = %SystemRoot%\Web\Wallpaper\*.bmp
+BGDestPattern   = AutoFit
+BGDestAntiAlias = On
+BGDestColor     = 0,0,0
+
+BGSrc1Type      = Color
+BGSrc1File      = 
+BGSrc1Pattern   = 
+BGSrc1AntiAlias = 
+BGSrc1Color     = 32,32,32
+BGSrc1Alpha     = 64
+
+BGSrc2Type      = Color
+BGSrc2File      = 
+BGSrc2Pattern   = 
+BGSrc2AntiAlias = 
+BGSrc2Color     = 32,32,32
+BGSrc2Alpha     = 64

Modified: trunk/installer/release/theme/Scale.INI
===================================================================
--- trunk/installer/release/theme/Scale.INI	2012-04-20 14:05:01 UTC (rev 4908)
+++ trunk/installer/release/theme/Scale.INI	2012-04-22 10:41:53 UTC (rev 4909)
@@ -7,7 +7,7 @@
 
 BGReverseTextTone = 192
 
-BGPictureFile      = scale\*.*
+BGPictureFile      = scale\*.jpg
 BGPicturePattern   = AutoFit
 BGPictureBaseColor = 0,0,0
 BGPictureTone      = 128

Modified: trunk/installer/release/theme/Tile.INI
===================================================================
--- trunk/installer/release/theme/Tile.INI	2012-04-20 14:05:01 UTC (rev 4908)
+++ trunk/installer/release/theme/Tile.INI	2012-04-22 10:41:53 UTC (rev 4909)
@@ -7,7 +7,7 @@
 
 BGReverseTextTone = 192
 
-BGPictureFile      = tile\*.*
+BGPictureFile      = tile\*.jpg
 BGPicturePattern   = Tile
 BGPictureBaseColor = 0,0,0
 BGPictureTone      = 128

Modified: trunk/teraterm/teraterm/vtdisp.c
===================================================================
--- trunk/teraterm/teraterm/vtdisp.c	2012-04-20 14:05:01 UTC (rev 4908)
+++ trunk/teraterm/teraterm/vtdisp.c	2012-04-22 10:41:53 UTC (rev 4909)
@@ -326,16 +326,18 @@
     return 0;
 }
 
-void RandomFile(char *filespec,char *filename, int destlen)
+void RandomFile(char *filespec_src,char *filename, int destlen)
 {
   int    i;
   int    file_num;
-  char   fullpath[MAX_PATH];
+  char   fullpath[1024];
   char   *filePart;
-
+  char filespec[1024];
   HANDLE hFind;
   WIN32_FIND_DATA fd;
 
+  ExpandEnvironmentStrings(filespec_src, filespec, sizeof(filespec));
+
   //\x90\xE2\x91΃p\x83X\x82ɕϊ\xB7
   if(!GetFullPathName(filespec,MAX_PATH,fullpath,&filePart))
     return;



Ttssh2-commit メーリングリストの案内
Back to archive index