[Ttssh2-commit] [6306] OSC 4/11/104/ 111 で BCE 用の情報の更新が抜けていたのを修正。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2016年 2月 19日 (金) 10:49:13 JST


Revision: 6306
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6306
Author:   doda
Date:     2016-02-19 10:49:13 +0900 (Fri, 19 Feb 2016)
Log Message:
-----------
OSC 4/11/104/111 で BCE 用の情報の更新が抜けていたのを修正。

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

-------------- next part --------------
Modified: trunk/teraterm/teraterm/vtdisp.c
===================================================================
--- trunk/teraterm/teraterm/vtdisp.c	2016-02-18 15:19:48 UTC (rev 6305)
+++ trunk/teraterm/teraterm/vtdisp.c	2016-02-19 01:49:13 UTC (rev 6306)
@@ -3511,6 +3511,8 @@
 		break;
 	}
 
+	UpdateBGBrush();
+
 	if (num == CS_TEK_FG || num == CS_TEK_BG) {
 		if (HTEKWin)
 			InvalidateRect(HTEKWin, NULL, FALSE);
@@ -3634,6 +3636,8 @@
 		}
 	}
 
+	UpdateBGBrush();
+
 	if (num == CS_TEK_FG || num == CS_TEK_BG) {
 		if (HTEKWin)
 			InvalidateRect(HTEKWin, NULL, FALSE);
@@ -3675,6 +3679,10 @@
 
 void DispSetCurCharAttr(TCharAttr Attr) {
   CurCharAttr = Attr;
+  UpdateBGBrush();
+}
+
+void UpdateBGBrush() {
   if (Background != NULL) DeleteObject(Background);
 
   if ((CurCharAttr.Attr2 & Attr2Back) != 0) {

Modified: trunk/teraterm/teraterm/vtdisp.h
===================================================================
--- trunk/teraterm/teraterm/vtdisp.h	2016-02-18 15:19:48 UTC (rev 6305)
+++ trunk/teraterm/teraterm/vtdisp.h	2016-02-19 01:49:13 UTC (rev 6306)
@@ -90,6 +90,7 @@
 void DispGetWindowSize(int *width, int *height);
 void DispGetRootWinSize(int *x, int *y);
 int DispFindClosestColor(int red, int green, int blue);
+void UpdateBGBrush(void);
 
 extern int WinWidth, WinHeight;
 extern HFONT VTFont[AttrFontMask+1];



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