svnno****@sourc*****
svnno****@sourc*****
2012年 12月 3日 (月) 12:46:33 JST
Revision: 5088 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5088 Author: doda Date: 2012-12-03 12:46:33 +0900 (Mon, 03 Dec 2012) Log Message: ----------- 端末の幅/高さの最大値をマクロを使うように修正。 Modified Paths: -------------- trunk/teraterm/common/tttypes.h trunk/teraterm/ttpdlg/ttdlg.c -------------- next part -------------- Modified: trunk/teraterm/common/tttypes.h =================================================================== --- trunk/teraterm/common/tttypes.h 2012-12-03 03:42:29 UTC (rev 5087) +++ trunk/teraterm/common/tttypes.h 2012-12-03 03:46:33 UTC (rev 5088) @@ -605,7 +605,7 @@ // \x89\xA1\x95\x9D\x82̍ő\xE5\x92l\x82\xF0300\x82\xA9\x82\xE7500\x82ɕύX (2008.2.15 maya) #define TermWidthMax 500 -#define TermHeightMax 200 +#define TermHeightMax 500 /* Cursor shapes */ #define IdBlkCur 1 Modified: trunk/teraterm/ttpdlg/ttdlg.c =================================================================== --- trunk/teraterm/ttpdlg/ttdlg.c 2012-12-03 03:42:29 UTC (rev 5087) +++ trunk/teraterm/ttpdlg/ttdlg.c 2012-12-03 03:46:33 UTC (rev 5088) @@ -361,16 +361,16 @@ if ( ts->TerminalWidth<1 ) { ts->TerminalWidth = 1; } - if ( ts->TerminalWidth>500 ) { - ts->TerminalWidth = 500; + if ( ts->TerminalWidth>TermWidthMax ) { + ts->TerminalWidth = TermWidthMax; } ts->TerminalHeight = GetDlgItemInt(Dialog,IDC_TERMHEIGHT,NULL,FALSE); if ( ts->TerminalHeight<1 ) { ts->TerminalHeight = 1; } - if ( ts->TerminalHeight>500 ) { - ts->TerminalHeight = 500; + if ( ts->TerminalHeight>TermHeightMax ) { + ts->TerminalHeight = TermHeightMax; } GetRB(Dialog,&ts->TermIsWin,IDC_TERMISWIN,IDC_TERMISWIN);