[Ttssh2-commit] [6671] MaximizedBugTweak の設定値でどの対策を利用するか選べるようにした

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2017年 4月 11日 (火) 02:52:24 JST


Revision: 6671
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6671
Author:   doda
Date:     2017-04-11 02:52:24 +0900 (Tue, 11 Apr 2017)
Log Message:
-----------
MaximizedBugTweak の設定値でどの対策を利用するか選べるようにした

0: 対策なし
1: 画面全体を書き直し
2: クライアント領域を縮める
on -> 1, off -> 0

Modified Paths:
--------------
    trunk/teraterm/teraterm/vtdisp.c
    trunk/teraterm/teraterm/vtwin.cpp
    trunk/teraterm/ttpset/ttset.c

-------------- next part --------------
Modified: trunk/teraterm/teraterm/vtdisp.c
===================================================================
--- trunk/teraterm/teraterm/vtdisp.c	2017-04-10 17:52:21 UTC (rev 6670)
+++ trunk/teraterm/teraterm/vtdisp.c	2017-04-10 17:52:24 UTC (rev 6671)
@@ -1654,7 +1654,7 @@
 	if (BGEnable) {
 		InvalidateRect(HVTWin, ClipRect, FALSE);
 	}
-	else if (ts.MaximizedBugTweak && IsZoomed(hwnd)) {
+	else if (ts.MaximizedBugTweak == 1 && IsZoomed(hwnd)) {
 		// \x83E\x83B\x83\x93\x83h\x83E\x8Dő剻\x8E\x9E\x82̕\xB6\x8E\x9A\x8C\x87\x82\xAF\x91΍\xF4
 		// \x97L\x8C\xF8\x8E\x9E\x82\xCD ScrollWindow \x82\xF0\x8Eg\x82킸\x82ɂ\xB7\x82ׂď\x91\x82\xAB\x92\xBC\x82\xB7
 		InvalidateRect(HVTWin, ClipRect, FALSE);

Modified: trunk/teraterm/teraterm/vtwin.cpp
===================================================================
--- trunk/teraterm/teraterm/vtwin.cpp	2017-04-10 17:52:21 UTC (rev 6670)
+++ trunk/teraterm/teraterm/vtwin.cpp	2017-04-10 17:52:24 UTC (rev 6671)
@@ -2480,7 +2480,7 @@
 
 	CWnd::OnNcCalcSize(valid, sizeinfo);
 
-	if (valid && IsZoomed()) {
+	if (valid && IsZoomed() && ts.MaximizedBugTweak == 2) {
 		// \x83E\x83B\x83\x93\x83h\x83E\x8Dő剻\x8E\x9E\x82ɕ\xB6\x8E\x9A\x82\xAA\x8C\x87\x82\xAF\x82\xE9\x8Fꍇ\x82\xAA\x82\xA0\x82鎖\x82ւ̑Ώ\x88
 		// \x83N\x83\x89\x83C\x83A\x83\x93\x83g\x97̈\xE6\x82̍\x82\x82\xB3\x82\xAA\x95\xB6\x8E\x9A\x82̍\x82\x82\xB3\x82Ŋ\x84\x82\xE8\x90؂ꂸ
 		// \x83E\x83B\x83\x93\x83h\x83E\x8Dʼn\xBA\x95\x94\x82Ɉ\xEA\x8Ds\x96\xA2\x96\x9E\x82̌\x84\x8AԂ\xAA\x8Fo\x97\x88\x82鎖\x82\xAA\x8C\xB4\x88\xF6\x81B

Modified: trunk/teraterm/ttpset/ttset.c
===================================================================
--- trunk/teraterm/ttpset/ttset.c	2017-04-10 17:52:21 UTC (rev 6670)
+++ trunk/teraterm/ttpset/ttset.c	2017-04-10 17:52:24 UTC (rev 6671)
@@ -1586,8 +1586,14 @@
 		GetOnOff(Section, "MouseEventTracking", FName, TRUE);
 
 	// Maximized bug tweak
-	ts->MaximizedBugTweak =
-		GetOnOff(Section, "MaximizedBugTweak", FName, TRUE);
+	GetPrivateProfileString(Section, "MaximizedBugTweak", "1", Temp,
+	                        sizeof(Temp), FName);
+	if (_stricmp(Temp, "on") == 0) {
+		ts->MaximizedBugTweak = 1;
+	}
+	else {
+		ts->MaximizedBugTweak = atoi(Temp);
+	}
 
 	// Convert Unicode symbol characters to DEC Special characters
 	ts->UnicodeDecSpMapping =
@@ -2912,7 +2918,7 @@
 	           ts->MouseEventTracking);
 
 	// Maximized bug tweak
-	WriteOnOff(Section, "MaximizedBugTweak", FName, ts->MaximizedBugTweak);
+	WriteInt(Section, "MaximizedBugTweak", FName, ts->MaximizedBugTweak);
 
 	// Convert Unicode symbol characters to DEC Special characters
 	WriteUint(Section, "UnicodeToDecSpMapping", FName, ts->UnicodeDecSpMapping);



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