• R/O
  • SSH
  • HTTPS

ttssh2: コミット


コミットメタ情報

リビジョン9961 (tree)
日時2022-05-24 23:21:35
作者zmatsuo

ログメッセージ

vtwin.cpp で次の設定をtsから直接参照するようにした

- ts.EtermLookfeel.BGNoFrame
- ts.EtermLookfeel.BGNoCopyBits

変更サマリ

差分

--- trunk/teraterm/teraterm/vtdisp.c (revision 9960)
+++ trunk/teraterm/teraterm/vtdisp.c (revision 9961)
@@ -171,7 +171,6 @@
171171 int BGEnable;
172172 static int BGReverseTextAlpha;
173173 static int BGUseAlphaBlendAPI;
174-BOOL BGNoFrame;
175174 static BOOL BGFastSizeMove;
176175
177176 static COLORREF BGVTColor[2];
@@ -185,7 +184,6 @@
185184 static RECT BGPrevRect;
186185 static BOOL BGReverseText;
187186
188-BOOL BGNoCopyBits;
189187 static BOOL BGInSizeMove;
190188 static HBRUSH BGBrushInSizeMove;
191189
@@ -1449,9 +1447,7 @@
14491447
14501448 // BGシステム設定読み出し
14511449 BGUseAlphaBlendAPI = ts.EtermLookfeel.BGUseAlphaBlendAPI;
1452- BGNoFrame = ts.EtermLookfeel.BGNoFrame;
14531450 BGFastSizeMove = ts.EtermLookfeel.BGFastSizeMove;
1454- BGNoCopyBits = ts.EtermLookfeel.BGNoCopyBits;
14551451
14561452 //テンポラリーファイル名を生成
14571453 {
--- trunk/teraterm/teraterm/vtdisp.h (revision 9960)
+++ trunk/teraterm/teraterm/vtdisp.h (revision 9961)
@@ -47,8 +47,6 @@
4747 void BGOnExitSizeMove(void);
4848
4949 extern BOOL BGEnable;
50-extern BOOL BGNoFrame;
51-extern BOOL BGNoCopyBits;
5250 //-->
5351
5452 void InitDisp();
--- trunk/teraterm/teraterm/vtwin.cpp (revision 9960)
+++ trunk/teraterm/teraterm/vtwin.cpp (revision 9961)
@@ -355,7 +355,7 @@
355355 WS_BORDER | WS_THICKFRAME | WS_POPUP;
356356
357357 #ifdef ALPHABLEND_TYPE2
358- if(BGNoFrame)
358+ if (ts.EtermLookfeel.BGNoFrame)
359359 Style &= ~(WS_BORDER | WS_THICKFRAME);
360360 #endif
361361 }
@@ -407,7 +407,7 @@
407407
408408 #ifdef ALPHABLEND_TYPE2
409409 //<!--by AKASI
410- if(BGNoFrame && ts.HideTitle > 0) {
410+ if(ts.EtermLookfeel.BGNoFrame && ts.HideTitle > 0) {
411411 DWORD ExStyle = (DWORD)::GetWindowLongPtr(HVTWin,GWL_EXSTYLE);
412412 ExStyle &= ~WS_EX_CLIENTEDGE;
413413 ::SetWindowLongPtr(HVTWin,GWL_EXSTYLE,ExStyle);
@@ -2801,7 +2801,7 @@
28012801 LRESULT CVTWindow::OnWindowPosChanging(WPARAM wParam, LPARAM lParam)
28022802 {
28032803 #ifdef ALPHABLEND_TYPE2
2804- if(BGEnable && BGNoCopyBits) {
2804+ if(BGEnable && ts.EtermLookfeel.BGNoCopyBits) {
28052805 ((WINDOWPOS*)lParam)->flags |= SWP_NOCOPYBITS;
28062806 }
28072807 #endif
@@ -3254,7 +3254,7 @@
32543254 WS_MINIMIZEBOX | WS_MAXIMIZEBOX) | WS_BORDER | WS_POPUP;
32553255
32563256 #ifdef ALPHABLEND_TYPE2
3257- if(BGNoFrame) {
3257+ if(ts.EtermLookfeel.BGNoFrame) {
32583258 Style &= ~(WS_THICKFRAME | WS_BORDER);
32593259 ExStyle &= ~WS_EX_CLIENTEDGE;
32603260 }else{
旧リポジトリブラウザで表示