[Ttssh2-commit] [6672] 最大化時文字欠け対策に type 3 を追加

Back to archive index

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


Revision: 6672
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6672
Author:   doda
Date:     2017-04-11 02:52:27 +0900 (Tue, 11 Apr 2017)
Log Message:
-----------
最大化時文字欠け対策に type 3 を追加

3: ScrollWindow で全体(NULL)を指定された時は隙間部分を除いた領域に差し替える

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

-------------- next part --------------
Modified: trunk/teraterm/teraterm/vtdisp.c
===================================================================
--- trunk/teraterm/teraterm/vtdisp.c	2017-04-10 17:52:24 UTC (rev 6671)
+++ trunk/teraterm/teraterm/vtdisp.c	2017-04-10 17:52:27 UTC (rev 6672)
@@ -1651,13 +1651,28 @@
 
 void BGScrollWindow(HWND hwnd, int xa, int ya, RECT *Rect, RECT *ClipRect)
 {
+	RECT r;
+
 	if (BGEnable) {
 		InvalidateRect(HVTWin, ClipRect, FALSE);
 	}
-	else if (ts.MaximizedBugTweak == 1 && IsZoomed(hwnd)) {
+	else if (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);
+		switch (ts.MaximizedBugTweak) {
+		case 1: // type 1: ScrollWindow \x82\xF0\x8Eg\x82킸\x82ɂ\xB7\x82ׂď\x91\x82\xAB\x92\xBC\x82\xB7
+			InvalidateRect(HVTWin, ClipRect, FALSE);
+			break;
+		case 3: // type 3: \x83X\x83N\x83\x8D\x81[\x83\x8B\x97̈悪\x91S\x91\xCC(NULL)\x82̎\x9E\x82͌\x84\x8Aԕ\x94\x95\xAA\x82\xF0\x8F\x9C\x82\xA2\x82\xBD\x97̈\xE6\x82ɍ\xB7\x82\xB5\x91ւ\xA6\x82\xE9
+			if (Rect == NULL) {
+				GetClientRect(hwnd, &r);
+				r.bottom -= r.bottom % ts.TerminalHeight;
+				Rect = &r;
+			}
+			/* FALLTHROUGH */
+		default:
+			ScrollWindow(hwnd, xa, ya, Rect, ClipRect);
+			break;
+		}
 	}
 	else {
 		ScrollWindow(hwnd, xa, ya, Rect, ClipRect);



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